2017 © Pedro PelĂĄez
 

library react-restify

Create RESTful API with ReactPHP

image

brenodouglas/react-restify

Create RESTful API with ReactPHP

  • Friday, January 8, 2016
  • by breninho94
  • Repository
  • 2 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

React-Restify

Scrutinizer Code Quality, (*1)

RESTful api made easy for ReactPHP, seriously., (*2)

Instalation

In your composer.json, (*3)

"require"       : {
    "capmousse/react-restify": "dev-master"
},

Create server

Here is an exemple of a simple HTTP server replying to all get call like http://127.0.0.1:1337/hello/you, (*4)

require 'vendor/autoload.php';

$server = new CapMousse\ReactRestify\Server("MyAPP", "0.0.0.1");

$server->get('/hello/{name}', function ($request, $response, $next) {
    $response->write("Hello ".$request->name);
    $next();
});

$runner = new CapMousse\ReactRestify\Runner($server);
$runner->listen(1337);

More examples can be found on the example directory like the Todo example, the most complete, (*5)

Design goals

React-Restify was primary made to build RESTful api easily. It can be used like Silex, but without the framework part., (*6)

Next part will be to support Sockets, Upgrade Requests... to create a real time API server., (*7)

Licence

MIT, see LICENCE file, (*8)

The Versions

08/01 2016

dev-master

9999999-dev

Create RESTful API with ReactPHP

  Sources   Download

MIT

The Requires

 

by Breno Douglas

rest react restify

08/01 2016

0.3.0

0.3.0.0

Create RESTful API with ReactPHP

  Sources   Download

MIT

The Requires

 

by Breno Douglas

rest react restify

04/04 2014

0.2.0

0.2.0.0

Create RESTful API with ReactPHP

  Sources   Download

MIT

The Requires

 

rest react restify

04/04 2014

dev-dev

dev-dev

Create RESTful API with ReactPHP

  Sources   Download

MIT

The Requires

 

rest react restify

28/03 2014

0.1.0

0.1.0.0

Create RESTful API with ReactPHP

  Sources   Download

MIT

The Requires

 

rest react restify