2017 © Pedro Peláez
 

library curl

A friendly curl wrapper for PHP.

image

dcai/curl

A friendly curl wrapper for PHP.

  • Monday, June 11, 2018
  • by dcai
  • Repository
  • 5 Watchers
  • 25 Stars
  • 175 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 22 Forks
  • 3 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

curl wrapper class for PHP

A PHP wrapper class to simplify PHP cURL Library., (*1)

How to use

Following code shows how to use this class, (*2)

$http = new dcai\curl;
// enable cache
$http = new dcai\curl(array('cache'=>true));
// enable cookie
$http = new dcai\curl(array('cookie'=>true));
// enable proxy
$http = new dcai\curl(array('proxy'=>true));

// HTTP GET
$response = $http->get('http://example.com');
// HTTP POST
$response = $http->post('http://example.com/', array('q'=>'words', 'name'=>'moodle'));
// POST RAW
$xml = '<action>perform</action>';
$response = $http->post('http://example.com/', $xml);
// HTTP PUT
$response = $http->put('http://example.com/', array('file'=>'/var/www/test.txt');

Build Status, (*3)

The Versions

11/06 2018

dev-master

9999999-dev

A friendly curl wrapper for PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

11/06 2018

0.2.2

0.2.2.0

A friendly curl wrapper for PHP.

  Sources   Download

GPL-3.0

The Development Requires

11/06 2018

0.2.1

0.2.1.0

curl wrapper

  Sources   Download

GPL-3.0

The Requires

 

04/12 2016

v0.2.0

0.2.0.0

curl wrapper

  Sources   Download

GPL-3.0