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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
README.md

README.md

Easy Curl

Overview

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('http://twitter.com');

// Execute a GET request
$request->get();

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

// 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
$request->getError();
You can’t perform that action at this time.