If you have finished all the required courses in the PhD program, you can apply. Otherwise you can only apply for 3 months summer OPT.