Open Markavian opened 5 years ago
Example application used to test REQUEST_URI: https://gist.github.com/Markavian/ff100dcba4f4580ec87865c3d12a1240
Tested this branch locally using npm link
and npm link php-express
against sample express server.
This pull requests aims to allow additional environment variables to be passed to PHP from Express; explicitly including req.url mapped to REQUEST_URI to help PHP understand more about the request being served.
The change allows:
opts.server
to be provided to allow mapping betweenreq.url
:REQUEST_URI
from express to the PHPExpress engine