Web 1.x PHP script to replace CGI one?

Has anyone written a php script to replace the default cgi one for deployment of Web 1 applications on a managed server using php?

The new server from a client comes with php, but not cgi support.
And we could rewrite the script ourselves, but maybe someone has done that already?