The first question is: Why do you want your PSD files turned into PHP ones??

PSD is a graphic format while PHP is pure coding. If you want to export slices into browser enabled files, Photoshop...