Skip to content

timo-cingoez/cURLy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

cURLy

A PHP (7.4) cURL wrapper.

Example

$cURLy = new cURLy('https://jsonplaceholder.typicode.com/todos/1', [CURLOPT_CERTINFO => true]);
$cURLy->setLog(true);
$cURLy->setResponseType('OBJECT');
$cURLy->GET();

Method chaining is also supported

$getResponse = cURLy::instance('https://jsonplaceholder.typicode.com/todos/1')->GET();
$data = ['title' => 'foo', 'body' => 'bar', 'userId' => 1];
$postResponse = cURLy::instance('https://jsonplaceholder.typicode.com/posts')->setLog(true)->setFormat('JSON')->POST($data);

About

A simple PHP cURL wrapper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages