The HTTP package includes a PSR-18 compatible HTTP client to facilitate RESTful HTTP requests over a variety of transport protocols.
- PHP 8.1 or later
Add "joomla/http": "~3.0"
to the require block in your composer.json and then run composer install
.
{
"require": {
"joomla/http": "~3.0"
}
}
Alternatively, you can simply run the following from the command line:
composer require joomla/http "~3.0"
If you want to include the test sources and docs, use
composer require --prefer-source joomla/http "~3.0"