Skip to content
Simple, easy to use wrapper library for PHP curl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Easy Curl


Easy Curl is a simple easy to use wrapper library for PHP curl

Basic Usage

include_once 'lib/Curl.php'

// Creating a Curl instance 
$request = new Curl('');

// Execute a GET request

// Or execute a POST request
$post_data = array('fname'=>'Jone','lname'=>'Doe');

// Get response of executed request
$response = $request->response();

// To get request informations
$request_info = $request->getInfo();

// Get HTTP status code 
$http_status = $request_info['http_code']

// If error occur, to get error message
You can’t perform that action at this time.