Install php-http by entering the following commands in the terminal:
sudo apt update sudo apt install php-http
Description:
PECL HTTP module for PHP Extended HTTP Support
This HTTP extension aims to provide a convenient and powerful set of functionality for one of PHPs major applications. . It eases handling of HTTP urls, headers and messages, provides means for negotiation of a client's preferred content type, language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. . It provides powerful request functionality with support for parallel requests.
Homepage: http://pecl.php.net/package/pecl_http
Version: 3.1.0+2.6.0-4build8
Section: universe/web