php-http/httplug
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
php-http/promise | 1.3.1 | - | MIT | prod | |
psr/http-client | 1.0.3 | - | MIT | prod |
The php-http/httplug package is essentially an HTTP client abstraction for PHP. Built on PSR-7 HTTP messages, it offers a standard for HTTP clients, with a primary focus on providing an asynchronous HTTP client interface. For synchronous requests, it is recommended to use PSR-18 directly. HTTPlug is the official successor to the ivory http adapter and is a predecessor of PSR-18.
Using php-http/httplug requires installing the package with Composer, a popular dependency management tool for PHP. You would input the following command into your terminal or command prompt:
$ composer require php-http/httplug
Once installed, you can utilize HTTPlug throughout your PHP projects to facilitate asynchronous HTTP client tasks. Note that while it has a synchronous HttpClient interface, for most straightforward synchronous requests, using PSR-18 directly is advised.
The official documentation for php-http/httplug, including comprehensive information about its features, methods, and usage, can be found at the following URL: http://docs.php-http.org. This is your go-to resource for understanding how to effectively leverage the http/httplug in your PHP projects.