Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

dtjm/php-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-async

Asynchronous components for PHP

TCP Server

server.php

$server = new \Async\TCPServer("tcp://0.0.0.0:4000");
$server->onConnect(function(){
    echo "A client connected\n";
});
$server->onData(function($data){
    echo "Client said: $data\n";
});

$server->run();

Then you can do this:

# telnet localhost 4000

About

Experimental asynchronous components for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages