deuill / go-php

PHP bindings for the Go programming language (Golang)
MIT License
925 stars 105 forks source link

Read globals (`$_GET`, `$_POST`, `$_FILES`, `$_REQUEST`, etc) from `http.Request` types #51

Open deuill opened 6 years ago

deuill commented 6 years ago

There is currently no easy way of populating request-specific globals in PHP contexts (apart from binding variables and setting globals in PHP). For go-php to be useful in replicating or replacing the standard apache/nginx/php-fpm stack, we need to be able to handle requests transparently.

One possible implementation is having Context conform to the http.Handler interface, therefore allowing for transparent handling of incoming requests.

PaulBGD commented 5 years ago

Has there been any work on this? Would be very useful for me.

deuill commented 5 years ago

Not really, the library is pretty much unmaintained though. Feel free to contribute if you want.