All book examples of the PHP Socket Programming Handbook. Learn more at http://www.christophh.net/php-socket-programming-handbook/
If you have Windows it’s advised to use Vagrant to run the examples to get the intended results.
Install Vagrant and then run vagrant up
in this directory.
Then open the VM’s shell and run the code examples.