framework-x
framework-x copied to clipboard
Framework X – the simple and fast micro framework for building reactive web applications that run anywhere.
This changeset adds support for loading environment variables from the DI container configuration: ```php title="public/index.php"
Imagine you wanted to have a service with a constructor parameter of a string like this: ```php class UserController { public function __construct(string $hostname) { // ... } } ```...
Builds on top of https://github.com/reactphp/http/pull/460 and https://github.com/reactphp/promise/pull/138 (and countless upstream tickets referenced in https://github.com/reactphp/http/pull/460)
``` $app->addGroup('/users', [ // middleware1, // middleware2 ], function ($app) { $app->get('/{name}', function ($request) { return \React\Http\Message\Response::plaintext( "Hello " . $request->getAttribute('name') . "!\n" ); }); $app->addGroup('/{name}/posts', [ // middleware1, //...
In order to response with individual error messages and / or formats (e.g. JSON), we are able to put an ErrorHandler to the container (see #175). But the individual ErrorHandler...
Hey there 👋, first and foremost: thanks for Framework X! I'm currently developing a website from scratch and it's like a fresh breeze compared to the "heavy" frameworks I'm used...
in respect to the underlying http-server component which will not allow to define the own middleware streaming handler. this code will give the opportunity to handle the 64KB request body...
I have tried to build a setup with two services: one framework-x service and a nginx as reverse proxy. If I am using the nginx configuration that you are suggesting...
Currently, if using nginx as a reverse proxy with the described configuration, PHP files in the public folder are served as-it (unparsed) to the client, because the `try_files` instruction in...