Skip to content

innova/Easy-Curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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();

About

Simple, easy to use wrapper library for PHP curl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages