Yii2 Change Transport

use yii\httpclient\Client;

$client = new Client([
    'transport' => 'yii\httpclient\CurlTransport'
]);
Bahriddin Mo'minov