2017 © Pedro Peláez
 

library espresso

Silex wired with radioactive caffeine.

image

react/espresso

Silex wired with radioactive caffeine.

  • Tuesday, April 14, 2015
  • by WyriHaximus
  • Repository
  • 16 Watchers
  • 125 Stars
  • 207 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 8 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

React/Espresso

React/Espresso is a proof-of-concept microframework that integrates Silex with React/Http., (*1)

Build Status, (*2)

Install

The recommended way to install react/espresso is through composer., (*3)

{
    "require": {
        "minimum-stability": "dev",
        "react/espresso": "0.2.*"
    }
}

Example

$app = new React\Espresso\Application();

$app->get('/', function ($request, $response) {
    $response->writeHead(200, array('Content-Type' => 'text/plain'));
    $response->end("Hello World\n");
});

$app->get('/favicon.ico', function ($request, $response) {
    $response->writeHead(204);
    $response->end();
});

$app->get('/humans.txt', function ($request, $response) {
    $response->writeHead(200, array('Content-Type' => 'text/plain'));
    $response->end("I believe you are a humanoid robot.\n");
});

$stack = new React\Espresso\Stack($app);
$stack->listen(1337);

Tests

To run the test suite, you need PHPUnit., (*4)

$ phpunit

License

MIT, see LICENSE., (*5)

The Versions

14/04 2015

dev-master

9999999-dev

Silex wired with radioactive caffeine.

  Sources   Download

MIT

The Requires

 

microframework

24/09 2012

v0.2.1

0.2.1.0

Silex wired with radioactive caffeine.

  Sources   Download

MIT

The Requires

 

microframework

10/09 2012

v0.2.0

0.2.0.0

Silex wired with radioactive caffeine.

  Sources   Download

MIT

The Requires

 

microframework

12/07 2012

v0.1.1

0.1.1.0

Silex wired with radioactive caffeine.

  Sources   Download

MIT

The Requires

 

microframework

11/07 2012

v0.1.0

0.1.0.0

Silex wired with radioactive caffeine.

  Sources   Download

MIT

The Requires

 

microframework