2017 © Pedro Peláez
 

library fastcgi-react

Simply serve fastcgi with reactphp

image

garveen/fastcgi-react

Simply serve fastcgi with reactphp

  • Thursday, February 16, 2017
  • by acabin
  • Repository
  • 1 Watchers
  • 7 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

garveen/fastcgi-react

Simply serve fastcgi with reactphp, (*1)

composer require garveen/fastcgi-react
require 'vendor/autoload.php';

$loop = React\EventLoop\Factory::create();
$socket = new React\Socket\Server(9000, $loop);

$fastcgi = new Garveen\FastCgi\React($socket);

// see http://www.php-fig.org/psr/psr-7/
$fastcgi->onRequest = function (Psr\Http\Message\RequestInterface $request) {
    return new Garveen\FastCgi\Response(
        '200', // status code
        ['x-powered-by' => 'garveen/fastcgi-react'], // headers
        'Hello World!' // body
    );
};

$loop->run();

The Versions

16/02 2017

dev-master

9999999-dev

Simply serve fastcgi with reactphp

  Sources   Download

MIT

The Requires

 

by Gavin

psr-7 psr7 fastcgi react reactphp

15/02 2017

0.1.0

0.1.0.0

Simply serve fastcgi with reactphp

  Sources   Download

MIT

The Requires

 

by Gavin

psr-7 psr7 fastcgi react reactphp