{"id":14990042,"url":"https://github.com/matricali/php-http-client","last_synced_at":"2025-04-12T02:04:07.887Z","repository":{"id":57001428,"uuid":"120054113","full_name":"matricali/php-http-client","owner":"matricali","description":"Note that this is not a HTTP protocol implementation of its own. It is merely a wrapper of libcurl that implements PSR-7 HTTP message interface.","archived":false,"fork":false,"pushed_at":"2022-12-22T12:50:38.000Z","size":68,"stargazers_count":7,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T02:04:00.446Z","etag":null,"topics":["http-client","http-protocol","libcurl","php5","php7","psr-7","wrapper"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/jorge-matricali/http-client","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/matricali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-03T02:56:17.000Z","updated_at":"2024-01-21T15:34:05.000Z","dependencies_parsed_at":"2023-01-30T09:15:38.979Z","dependency_job_id":null,"html_url":"https://github.com/matricali/php-http-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fphp-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fphp-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fphp-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matricali%2Fphp-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matricali","download_url":"https://codeload.github.com/matricali/php-http-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505862,"owners_count":21115354,"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":["http-client","http-protocol","libcurl","php5","php7","psr-7","wrapper"],"created_at":"2024-09-24T14:19:22.554Z","updated_at":"2025-04-12T02:04:07.865Z","avatar_url":"https://github.com/matricali.png","language":"PHP","readme":"[![Latest stable release](https://img.shields.io/badge/dynamic/json.svg?label=stable\u0026url=https%3A%2F%2Fapi.github.com%2Frepos%2Fmatricali%2Fphp-http-client%2Freleases%2Flatest\u0026query=%24.name\u0026colorB=blue)](https://github.com/matricali/php-http-client/releases/latest)\n[![Build Status](https://travis-ci.org/matricali/php-http-client.svg?branch=master)](:status:) [![Coverage Status](https://coveralls.io/repos/github/matricali/php-http-client/badge.svg?branch=master)](https://coveralls.io/github/matricali/php-http-client?branch=master)\n[![MIT licensed](https://img.shields.io/github/license/matricali/php-http-client.svg)](https://matricali.mit-license.org/2017)\n[![GitHub contributors](https://img.shields.io/github/contributors/matricali/php-http-client.svg)](https://github.com/matricali/php-http-client/graphs/contributors)\n\nPSR-7 HTTP Client (cURL)\n========================\n\nNote that this is not an HTTP protocol implementation of its own. It is merely a\nwrapper of _libcurl_ that implements [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP message interface.\n\n## Requirements\n* PHP 5.4 or newer\n* [cURL extension](http://php.net/manual/en/curl.installation.php)\n\n## Installation\n```\ncomposer require matricali/http-client\n```\n\n## Usage\n\n##### Sending GET request\n```\nuse Matricali\\Http\\Client;\n\n$client = new Client();\n$response = $client-\u003eget('http://www.example.com/');\n\necho $response-\u003egetBody();\n```\n\n##### Sending POST request\n```\nuse Matricali\\Http\\Client;\n\n$client = new Client();\n$payload = '{\"name\": \"John Doe\"}';\n$response = $client-\u003epost('http://www.example.com/', $payload);\n\necho $response-\u003egetBody();\n```\n\n## Contributing\n\nContributions, issues, pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\nphp-http-client is [MIT licensed](LICENSE.txt).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatricali%2Fphp-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatricali%2Fphp-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatricali%2Fphp-http-client/lists"}