Yii2 Alterar transporte

use yii\httpclient\Client;

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