2017 © Pedro Peláez
 

library curl

A simple object-oriented wrapper of the PHP cURL extension.

image

tzfrs/curl

A simple object-oriented wrapper of the PHP cURL extension.

  • Monday, June 1, 2015
  • by tzfrs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 409 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Curl

A simple object-oriented wrapper of the PHP cURL extension., (*1)

Install

Install via composer:, (*2)

{
    "require": {
        "tzfrs/curl": "dev-master"
    }
}

Run composer install., (*3)

Example usage

Perform a simple get request

require 'Curl.php';
$curl = new Curl;
$curl->get('http://tzfrs.de');

Perform a get request with parameters

$curl = new Curl;
$curl->get('http://tzfrs.de/', array(
    's' => 'searchterm',
));

Setting some more options.

$curl = new Curl;
$curl->setFollowlocation()
    ->setMaxredirs(15)
    ->get('http://tzfrs.de');
if ($curl->hasError) {
    print $curl->errorNo .': '. $curl->error;
}
else {
    print $curl->response;
}

The Versions

01/06 2015

dev-master

9999999-dev

A simple object-oriented wrapper of the PHP cURL extension.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

01/06 2015

1.2

1.2.0.0

A simple object-oriented wrapper of the PHP cURL extension.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

21/01 2015

1.1

1.1.0.0

A simple object-oriented wrapper of the PHP cURL extension.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

15/12 2014

1.0

1.0.0.0

A simple object-oriented wrapper of the PHP cURL extension.

  Sources   Download

MIT

The Requires

  • php >=5.3.0