2017 © Pedro Peláez
 

yii2-extension yii2-curler

Advanced Curl wrapper for Yii2

image

swinetwork/yii2-curler

Advanced Curl wrapper for Yii2

  • Thursday, March 17, 2016
  • by swinetwork
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Curler

Advanced Curl wrapper for Yii2, (*1)

Why Use It

Requirements

  • PHP version 5.4 or later
  • Yii2 frameworks (Optional)

Installation

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)

Usage

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);

The Versions

17/03 2016

dev-master

9999999-dev

Advanced Curl wrapper for Yii2

  Sources   Download

MIT

The Requires

 

by Swi Network

curl extension yii2 advanced curl