{"id":13395569,"url":"https://github.com/php-http/socket-client","last_synced_at":"2025-04-04T12:10:12.407Z","repository":{"id":31016715,"uuid":"34575193","full_name":"php-http/socket-client","owner":"php-http","description":"Socket HTTP Client","archived":false,"fork":false,"pushed_at":"2024-09-01T11:47:59.000Z","size":174,"stargazers_count":80,"open_issues_count":2,"forks_count":39,"subscribers_count":13,"default_branch":"2.x","last_synced_at":"2024-09-08T05:53:21.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://httplug.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-http.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-25T16:02:29.000Z","updated_at":"2024-09-01T11:47:51.000Z","dependencies_parsed_at":"2024-10-25T12:46:58.541Z","dependency_job_id":"6badb699-1cf3-43ea-bd4a-73894f606a07","html_url":"https://github.com/php-http/socket-client","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fsocket-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fsocket-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fsocket-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fsocket-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-http","download_url":"https://codeload.github.com/php-http/socket-client/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174454,"owners_count":20896078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:24.316Z","updated_at":"2025-04-04T12:10:12.390Z","avatar_url":"https://github.com/php-http.png","language":"PHP","readme":"# Socket Client for PHP HTTP\n\n[![Latest Version](https://img.shields.io/github/release/php-http/socket-client.svg?style=flat-square)](https://github.com/php-http/socket-client/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Build Status](https://github.com/php-http/socket-client/actions/workflows/ci.yml/badge.svg?branch=2.x)](https://github.com/php-http/socket-client/actions/workflows/ci.yml)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/socket-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/socket-client)\n[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/socket-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/socket-client)\n[![Total Downloads](https://img.shields.io/packagist/dt/php-http/socket-client.svg?style=flat-square)](https://packagist.org/packages/php-http/socket-client)\n\nThe socket client use the stream extension from PHP, which is integrated into the core.\n\n## Features\n\n * TCP Socket Domain (tcp://hostname:port)\n * UNIX Socket Domain (unix:///path/to/socket.sock)\n * TLS / SSL Encyrption\n * Client Certificate (only for php \u003e 5.6)\n\n## Installation and Usage\n\n[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)\n\n## Testing\n\nFirst launch the http server:\n\n```bash\n$ ./vendor/bin/http_test_server \u003e /dev/null 2\u003e\u00261 \u0026\n```\n\nThen generate SSL certificates:\n\n```bash\n$ composer gen-ssl\n```\n\nNote: 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.\n\nNow run the test suite:\n\n``` bash\n$ composer test\n```\n\n\n## Contributing\n\nPlease see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).\n\n\n## Security\n\nIf you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":["PHP","Client"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Fsocket-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-http%2Fsocket-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Fsocket-client/lists"}