Socket client for PHP-HTTP
The socket client use the stream extension from PHP, which is integrated into the core.
- TCP Socket Domain (tcp://hostname:port)
- UNIX Socket Domain (unix:///path/to/socket.sock)
- TLS / SSL Encyrption
- Client Certificate (only for php > 5.6)
First launch the http server:
$ ./vendor/bin/http_test_server > /dev/null 2>&1 &
Then generate ssh certificates:
$ cd ./tests/server/ssl $ ./generate.sh $ cd ../../../
Note: If you are running this on macOS and get the following error: "Error opening CA Private Key privkey.pem", check this file.
Now run the test suite:
$ composer test
Please see our contributing guide.
If you discover any security related issues, please contact us at email@example.com.
The MIT License (MIT). Please see License File for more information.