2017 © Pedro Peláez
 

yii2-extension yii2-curl

A Yii2 component extension for cURL.

image

peterfrench/yii2-curl

A Yii2 component extension for cURL.

  • Thursday, April 9, 2015
  • by peterfrench
  • Repository
  • 1 Watchers
  • 2 Stars
  • 222 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Curl Wrapper for Yii2 framework

Requirements

  • PHP 5.4+
  • Yii 2.0.x
  • Curl and php-curl installed

Setup instructions

The preferred way to install this extension is through composer., (*1)

php composer.phar require --prefer-dist peterfrench/yii2-curl "*"

Once composer installs the extension, include the component in your config file., (*2)

    'curl' => [
        'class' => 'peterfrench\curl\Curl',
        'options' => [
            /* curl options */
        ],
    ],

Usage

  • to GET a page with default params
    $output = Yii::$app->curl->get($url, $params);
    // output will contain the result of the query
    // $params - query that'll be appended to the url
  • to POST data to a page
    $output = Yii::$app->curl->post($url, $data);
    // $data - data that will be POSTed

The Versions

09/04 2015

dev-master

9999999-dev

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl

09/04 2015

1.0.5

1.0.5.0

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl

07/04 2015

1.0.4

1.0.4.0

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl

07/04 2015

1.0.3

1.0.3.0

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl

07/04 2015

1.0.2

1.0.2.0

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl

06/04 2015

1.0.1

1.0.1.0

A Yii2 component extension for cURL.

  Sources   Download

MIT

The Requires

 

by Peter French

extension yii2 curl