No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples
src
tests
.coveralls.yml
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpunit.xml

README.md

ReactExpress

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

Stepan Kosatyi