cURL wrapper for yii2