Custom code only supports Java deployment. PHP is not supported.
But we have another solution (App42 PaaS) which lets you deploy your server side code(it supports PHP too.)
You can click here to have a look at App42 PaaS.
Please let us know if you need more information.