D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
vendor
/
plesk
/
socket-client
/
Filename :
README.md
back
Copy
# Socket Client for PHP HTTP [](https://github.com/php-http/socket-client/releases) [](LICENSE) [](https://github.com/php-http/socket-client/actions/workflows/ci.yml) [](https://scrutinizer-ci.com/g/php-http/socket-client) [](https://scrutinizer-ci.com/g/php-http/socket-client) [](https://packagist.org/packages/php-http/socket-client) The socket client use the stream extension from PHP, which is integrated into the core. ## Features * TCP Socket Domain (tcp://hostname:port) * UNIX Socket Domain (unix:///path/to/socket.sock) * TLS / SSL Encyrption * Client Certificate (only for php > 5.6) ## Installation and Usage [Read the documentation at http://docs.php-http.org/en/latest/clients/socket-client.html](http://docs.php-http.org/en/latest/clients/socket-client.html) ## Testing First launch the http server: ```bash $ ./vendor/bin/http_test_server > /dev/null 2>&1 & ``` Then generate ssh certificates: ```bash $ 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](ssl-macOS.md) file. Now run the test suite: ``` bash $ composer test ``` ## Contributing Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). ## Security If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). ## License The MIT License (MIT). Please see [License File](LICENSE) for more information.