Curl wrapper for Yii framework