2017 © Pedro Peláez
 

library socket-client

Socket client for PHP-HTTP

image

php-http/socket-client

Socket client for PHP-HTTP

  • Saturday, January 6, 2018
  • by mark.sagikazar
  • Repository
  • 8 Watchers
  • 35 Stars
  • 178,903 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 12 Forks
  • 2 Open issues
  • 11 Versions
  • 15 % Grown

The README.md

Socket Client for PHP HTTP

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads, (*1)

The socket client use the stream extension from PHP, which is integrated into the core., (*2)

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, (*3)

Testing

First launch the http server:, (*4)

$ ./vendor/bin/http_test_server > /dev/null 2>&1 &

Then generate SSL certificates:, (*5)

$ 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., (*6)

Now run the test suite:, (*7)

bash $ composer test, (*8)

Contributing

Please see our contributing guide., (*9)

Security

If you discover any security related issues, please contact us at security@php-http.org., (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions