Skip to content

Conversation

@Markavian
Copy link

@Markavian Markavian commented Sep 7, 2018

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 between req.url : REQUEST_URI from express to the PHPExpress engine

@Markavian
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants