Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kosatyi/react-express

ReactPHP router written in express.js style
https://github.com/kosatyi/react-express

composer reactphp reactphp-components

Last synced: about 3 hours ago
JSON representation

ReactPHP router written in express.js style

Awesome Lists containing this project

README

        

# 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:

- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)

### Composer

If you’re using [Composer](https://getcomposer.org/), you can run the following command:

```cmd
composer require kosatyi/react-express
```

Or add dependency manually in `composer.json`

```json
{
"require": {
"kosatyi/react-express":"dev-master"
}
}
```

## Quick Start

Import library to your project file.

```php
get('/',function( $app ){
$app->response->send('Hello World!');
});
$app->listen(8080,'127.0.0.1');
```

## Author

Stepan Kosatyi, [email protected]

[![Stepan Kosatyi](https://img.shields.io/badge/stepan-kosatyi-purple.svg)](https://kosatyi.com/)