PHP Classes

MyCurl: Pure PHP implementation of the cURL library

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 3,049 All time: 1,194 This week: 455Up
Version License PHP version Categories
my_curl 0.1GNU General Publi...3.0Networking, HTTP


This class provides an alternative implementation of the cURL extension functions in pure PHP.

It automatically detects whether the cURL library is available. If it is not available, it defines several functions with the same names of the cURL extension that use the class to emulate part the original functionality.

Currently it implements the functions: curl_init, curl_exec, curl_setopt and curl_close. Several of the most important options can be set with the curl_setopt function.

Innovation Award
PHP Programming Innovation award nominee
January 2007
Number 6

Prize: One book of choice by SAMS
Curl is a library to access remote servers using HTTP and other protocols.

PHP comes with an extension to integrate with this library since PHP 3, and so provide a simplified means to implement HTTP clients. However, the Curl extension is not available in all PHP installations.

This package provides a solution that makes the PHP Curl functions available under any PHP installation.

Applications that depend on the Curl library may now run with this package whether or not the Curl extension is available.

Manuel Lemos
Picture of Justin
Name: Justin <contact>
Classes: 1 package by
Country: United States United States
Age: 40
All time rank: 1054149 in United States United States
Week rank: 286 Up34 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example usage
Plain text file mycurl.class.php Class MyCurl class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,194
This week:455Up
 User Ratings  
 All time