Installation Installing the extension In order to install extension use Composer. Either run composer require --prefer-dist yiisoft/yii2-httpclient "*" or add "yiisoft/yii2-httpclient": "*" to the require section of your composer.json.