Skip to content

mphpify/cURL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cURL wrapper class for PHP

This is a PHP class to make cURL library easier to use

How to use

Following code shows how to use this class

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

// HTTP GET Method
$html = $c->get('https://example.com');
// HTTP POST Method
$html = $c->post('https://example.com/', array('q'=>'words', 'name'=>'moodle'));
// HTTP PUT Method
$html = $c->put('https://example.com/', array('file'=>'/var/www/test.txt');

Build Status

Releases

No releases published

Packages

No packages published