kosatyi / react-express
ReactPHP router written in express.js style
Fund package maintenance!
kosatyi.com
Requires
- ext-json: *
- react/event-loop: ^0.4.3
- react/http: ^0.8.1
- symfony/yaml: ^4.3
- wyrihaximus/react-http-middleware-session: ^1.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-19 22:40:16 UTC
README
ReactPHP router written in express.js style
Installation
System Requirements
PHP 7.1 and later.
Dependencies
SDK require the following extension in order to work properly:
Composer
If you’re using Composer, you can run the following command:
composer require kosatyi/react-express
Or add dependency manually in composer.json
{ "require": { "kosatyi/react-express":"dev-master" } }
Quick Start
Import library to your project file.
<?php require_once 'vendor/autoload.php'; use ReactExpress\Application; $app = Application::instance(); $app->get('/',function( $app ){ $app->response->send('Hello World!'); }); $app->listen(8080,'127.0.0.1');
Author
Stepan Kosatyi, stepan@kosatyi.com