Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Socket HTTP Client

License

NotificationsYou must be signed in to change notification settings

php-http/socket-client

Latest VersionSoftware LicenseBuild StatusCode CoverageQuality ScoreTotal Downloads

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/null2>&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", checkthis file.

Now run the test suite:

$ composertest

Contributing

Please see ourcontributing guide.

Security

If you discover any security related issues, please contact us atsecurity@php-http.org.

License

The MIT License (MIT). Please seeLicense File for more information.

About

Socket HTTP Client

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors18


[8]ページ先頭

©2009-2025 Movatter.jp