Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/localtools/php-http-client
Human-friendly and powerful HTTP client package for PHP
https://github.com/localtools/php-http-client
client curl framework http http-client psr-18 psr-7 rest
Last synced: about 1 month ago
JSON representation
Human-friendly and powerful HTTP client package for PHP
- Host: GitHub
- URL: https://github.com/localtools/php-http-client
- Owner: localtools
- Created: 2023-12-18T02:05:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T17:05:09.000Z (about 1 year ago)
- Last Synced: 2024-11-16T09:06:12.680Z (3 months ago)
- Topics: client, curl, framework, http, http-client, psr-18, psr-7, rest
- Language: PHP
- Homepage: https://packagist.org/packages/localtools/php-http-client
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhpHttpClient - A Human-friendly and powerful HTTP client package for PHP
This package provides a simple and powerful HTTP client for PHP, built on top of Guzzle. It simplifies the process of making HTTP requests and allows for easy customization of request options.
```php
$client = new \PhpHttpClient\Client('https://api.example.com');
$response = $client->get('/endpoint');echo $response->getStatusCode(); // 200
```## Installation
The recommended way to install PhpHttpClient is through [Composer](https://getcomposer.org/).
```bash
composer require localtools/php-http-client
```## Features
- Fluent interface for building HTTP requests
- Support for various authentication methods (Basic, Digest)
- Easy integration with PSR-7 and PSR-18
- Built on top of Guzzle, leveraging its power and flexibility## Version Guidance
| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version |
|---------|------------|---------------------------|--------------|-------------------------------|------------------------------|-------|--------------|
| 1.x | STABLE | `localtools/php-http-client` | `PhpHttpClient` | [v1][php-http-client-1-repo] | [v1][php-http-client-1-docs] | Yes | >=7.2.5,<8.2 |