HTTPlug, the HTTP client abstraction for PHP

Installs: 21 831 234

Dependents: 438

Suggesters: 12

Stars: 1 773

Watchers: 35

Forks: 24

Open Issues: 1

v2.0.0 2018-10-31 09:14 UTC


Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

Slack Status Email

HTTPlug, the HTTP client abstraction for PHP.


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.


HTTPlug is the official successor of the ivory http adapter. HTTPlug is a predecessor of PSR-18


Via Composer

$ composer require php-http/httplug


Please see the official documentation.


$ composer test


Please see our contributing guide.


If you discover any security related issues, please contact us at


The MIT License (MIT). Please see License File for more information.