php-http / httplug
HTTPlug, the HTTP client abstraction for PHP
Installs: 135 366 880
Dependents: 653
Suggesters: 14
Security: 0
Stars: 2 440
Watchers: 34
Forks: 40
Open Issues: 1
Requires
- php: ^7.1 || ^8.0
- php-http/promise: ^1.1
- psr/http-client: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- friends-of-phpspec/phpspec-code-coverage: ^4.1
- phpspec/phpspec: ^5.1 || ^6.0
This package is auto-updated.
Last update: 2023-03-21 11:56:07 UTC
README
HTTPlug, the HTTP client abstraction for PHP.
Intro
HTTP client standard built on PSR-7 HTTP messages. The HTTPlug client interface is compatible with the official standard for the HTTP client interface, PSR-18. HTTPlug adds an interface for asynchronous HTTP requests, which PSR-18 does not cover.
Since HTTPlug has already been widely adopted and a whole ecosystem has been built around it, we will keep maintaining this package for the time being. HTTPlug 2.0 and newer extend the PSR-18 interface to allow for a convenient migration path.
New client implementations and consumers should use the PSR-18 interfaces directly. In the long term, we expect PSR-18 to completely replace the need for HTTPlug.
History
HTTPlug is the official successor of the ivory http adapter. HTTPlug is a predecessor of PSR-18
Install
Via Composer
$ composer require php-http/httplug
Documentation
Please see the official documentation.
Testing
$ composer test
License
The MIT License (MIT). Please see License File for more information.