Skip to content

localtools/php-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

$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.

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