kosatyi/react-express

ReactPHP router written in express.js style

dev-master 2021-09-04 12:45 UTC

This package is auto-updated.

Last update: 2024-03-19 21:21:40 UTC


README

ReactPHP router written in express.js style

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f73617479692f72656163742d657870726573732e737667 68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b6f73617479692f6972656163742d657870726573732e737667 68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6b6f73617479692f72656163742d657870726573732f6d61737465722e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f73617479692f72656163742d657870726573732e737667 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b6f73617479692f72656163742d657870726573732e737667

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

Stepan Kosatyi