php-http/socket-client
PSR-7/PSR-18 HTTP client built on PHP streams. Supports TCP and UNIX domain sockets, TLS/SSL encryption, and client certificates. Lightweight, dependency-minimal option for making HTTP requests via socket connections.
The socket client use the stream extension from PHP, which is integrated into the core.
Read the documentation at http://docs.php-http.org/en/latest/clients/socket-client.html
First launch the http server:
$ ./vendor/bin/http_test_server > /dev/null 2>&1 &
Then generate SSL certificates:
$ composer gen-ssl
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 security@php-http.org.
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?