php-http/socket-client
Socket client for PHP-HTTP
v1.4.0
2017-11-29 20:46 UTC
Requires
- php: ^5.5 || ^7.0
- symfony/options-resolver: ^2.6 || ^3.0 || ^4.0
- php-http/httplug: ^1.0
- php-http/message-factory: ^1.0.2
- php-http/discovery: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.2
- php-http/client-integration-tests: ^0.6
- php-http/message: ^1.0
- php-http/client-common: ^1.0
Provides
README
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
Testing
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 ../../../
Now run the test suite:
$ composer test
Contributing
Please see our contributing guide.
Security
If you discover any security related issues, please contact us at security@php-http.org.
License
The MIT License (MIT). Please see License File for more information.