YII2 Cambio de transporte

use yii\httpclient\Client;

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