dev-master
9999999-devAdvanced Curl wrapper for Yii2
MIT
The Requires
- yiisoft/yii2 *
- php >=5.4.0
by Swi Network
curl extension yii2 advanced curl
Advanced Curl wrapper for Yii2
Advanced Curl wrapper for Yii2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist swinetwork/yii2-curler "dev-master"
or add, (*4)
"swinetwork/yii2-curler": "dev-master"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
use Yii; use swinetwork\Curler\Curler; $curler = new Curler(); $simplyGet = $curler->get('http://www.swi.com'); print_r($simplyGet->response); $curler = new Curler(); $data = array( 'id' => '1', 'key' => 'swi', 'date' => date('Y-m-d H:i:s') ); $simplyPost = $curler->post('http://www.swi.com', $data); print_r($simplyPost->response);
Advanced Curl wrapper for Yii2
MIT
curl extension yii2 advanced curl