Modern PHP application development doesn't really use the "deploy PHP scripts to a folder" model any more.
The more likely scenario is that a framework with a front controller is used, which is invoked by php-fpm, proxied by nginx.
It's easy enough to do, though.