Skip to content
Evented I/O for PHP
C Perl Other


Evented I/O for PHP

Example HTTP server


$http = new node_http();

$http->listen(8080, function($request, $response) {
    $response->end("yay, super awesome response");



To build:

First build nodephp as a php module

git clone git://
cd node.php
sudo make install

Then you must add the following line to your php.ini

Now you can go and run the example script

php src/test.php

Now if you point your browser to you should see the response being served by the test script via nodephp

Something went wrong with that request. Please try again.