2017 © Pedro Peláez
 

library http

http implementation with expressif streams

image

expressif/http

http implementation with expressif streams

  • Thursday, December 31, 2015
  • by ichiriac
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

http

Contains http bindings between pecl_http and libevent for creating a fast web server., (*1)

Requirements

This library use expressif/stream and http module :, (*2)

  • PHP 5.6+
  • libevent
  • pecl_http

If you are on windows (for dev & test purpose) you can dirrectly install pre-built libraries., (*3)


NOTE : if you plan to use this library on a multi-core server, you should consider expressif/cluster, (*4)

usage

<?php

  require 'vendor/autoload.php';
  use Expressif\Http\Server;

  $endpoint = '127.0.0.1:1337';
  echo "Serving HTTP at http://$endpoint\n";

  $http = new Server('tcp://' . $endpoint);

  $http->on('request', function($req, $res) {
    $res->writeHead(200, ['Content-Type' => 'text/plain']);
    $res->end('Hello world');
  });

The Versions

31/12 2015

dev-master

9999999-dev

http implementation with expressif streams

  Sources   Download

MIT

The Requires

 

28/01 2015

0.0.1-rc3

0.0.1.0-RC3

http implementation with expressif streams

  Sources   Download

MIT

The Requires

 

28/01 2015

0.0.1-rc2

0.0.1.0-RC2

http implementation with expressif streams

  Sources   Download

MIT

The Requires

 

28/01 2015

0.0.1-rc1

0.0.1.0-RC1

http implementation with expressif streams

  Sources   Download

MIT

The Requires

 

25/01 2015

0.0.1-beta

0.0.1.0-beta

http implementation with expressif streams

  Sources   Download

MIT

The Requires