2017 © Pedro Peláez
 

library curl

A PHP7 object-oriented wrapper of the cURL extension

image

flexyproject/curl

A PHP7 object-oriented wrapper of the cURL extension

  • Sunday, August 21, 2016
  • by emulienfou
  • Repository
  • 0 Watchers
  • 1 Stars
  • 537 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

A PHP7 Curl Client

This is a PHP7 object-oriented wrapper of the cURL extension., (*1)

Installation

composer require flexyproject/curl

Usage

require 'vendor/autoload.php';

use \FlexyProject\Curl\Client;

// Create Client object
$curl = new Client();

// Set Url
$curl->setUrl('https://api.github.com/user');

// Set options (here authentication options)
$curl->setOption([
    CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
    CURLOPT_USERPWD  => sprintf('%s:%s', 'user', 'pass')
]);

// Success callback
$curl->success(function (Client $instance) {
    $instance->getHeaders(); // Get headers info
    $instance->getResponse(); // Get response body
});
// Error callback
$curl->error(function (Client $instance) {
    $instance->getHeaders(); // Get headers info
    $instance->getResponse(); // Get response body
});

// Perform request
$curl->perform();

The Versions

21/08 2016

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/FlexyProject/Curl

A PHP7 object-oriented wrapper of the cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=7
  • ext-curl *

 

curl

21/08 2016

1.1.3

1.1.3.0 https://github.com/FlexyProject/Curl

A PHP7 object-oriented wrapper of the cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=7
  • ext-curl *

 

curl

29/05 2016

1.1.2

1.1.2.0 https://github.com/FlexyProject/Curl

A PHP7 object-oriented wrapper of the cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=7
  • ext-curl *

 

curl

29/05 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/FlexyProject/Curl

PHP5 object-oriented wrapper of the PHP cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • ext-curl *
  • php >=5.6

 

curl

29/05 2016

1.0.2

1.0.2.0 https://github.com/FlexyProject/Curl

PHP5 object-oriented wrapper of the PHP cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.6
  • ext-curl *

 

curl

15/03 2016

1.0.1

1.0.1.0 https://github.com/FlexyProject/Curl

PHP5 object-oriented wrapper of the PHP cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.6
  • ext-curl *

 

curl

14/03 2016

1.1.1

1.1.1.0 https://github.com/FlexyProject/Curl

A PHP7 object-oriented wrapper of the cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=7
  • ext-curl *

 

curl

10/03 2016

1.1

1.1.0.0 https://github.com/FlexyProject/Curl

A PHP7 object-oriented wrapper of the cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=7
  • ext-curl *

 

curl

07/10 2015

1.0

1.0.0.0 https://github.com/Scion-Framework/Curl

PHP5 object-oriented wrapper of the PHP cURL extension

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.6
  • ext-curl *

 

curl