php-http/socket-client
最新稳定版本:2.3.0
Composer 安装命令:
composer require php-http/socket-client
包简介
Socket client for PHP-HTTP
README 文档
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 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
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.
统计信息
- 总下载量: 2.38M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 81
- 点击次数: 1
- 依赖项目数: 50
- 推荐数: 4
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04