PHPackages                             bitmannl/codeigniter-curl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bitmannl/codeigniter-curl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bitmannl/codeigniter-curl
=========================

Install codeigniter-curl (philsturgeon) via Composer

1.3.1(10y ago)01.1kPHP

Since Dec 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BitmanNL/codeigniter-curl)[ Packagist](https://packagist.org/packages/bitmannl/codeigniter-curl)[ RSS](/packages/bitmannl-codeigniter-curl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

CodeIgniter-cURL
================

[](#codeigniter-curl)

!!! DEPRECATED !!!
------------------

[](#-deprecated-)

**This package is no longer actively maintained. If somebody sends in a pull request with some major security bug then I'll merge it, but other than that I am no longer using CodeIgniter Curl for anything. Framework specific code is something I thought was cool in 2009 when I built this, but I've barely touched it since. Use a framework agnostic equivilent, like [Guzzle](http://guzzlephp.org) or [Requests](http://requests.ryanmccue.info/).**

CodeIgniter-cURL is a CodeIgniter library which makes it easy to do simple cURL requests and makes more complicated cURL requests easier too.

Requirements
------------

[](#requirements)

1. PHP 5.1+
2. CodeIgniter 1.7.x - 2.0-dev
3. PHP 5 (configured with cURL enabled)
4. libcurl

Features
--------

[](#features)

- POST/GET/PUT/DELETE requests over HTTP
- HTTP Authentication
- Follows redirects
- Returns error string
- Provides debug information
- Proxy support
- Cookies

Examples
--------

[](#examples)

```
$this->load->library('curl');

```

### Simple calls

[](#simple-calls)

These do it all in one line of code to make life easy. They return the body of the page, or FALSE on fail.

```
// Simple call to remote URL
echo $this->curl->simple_get('http://example.com/');

// Simple call to CI URI
$this->curl->simple_post('controller/method', array('foo'=>'bar'));

// Set advanced options in simple calls
// Can use any of these flags http://uk3.php.net/manual/en/function.curl-setopt.php

$this->curl->simple_get('http://example.com', array(CURLOPT_PORT => 8080));
$this->curl->simple_post('http://example.com', array('foo'=>'bar'), array(CURLOPT_BUFFERSIZE => 10));

```

### Advanced calls

[](#advanced-calls)

These methods allow you to build a more complex request.

```
// Start session (also wipes existing/previous sessions)
$this->curl->create('http://example.com/');

// Option & Options
$this->curl->option(CURLOPT_BUFFERSIZE, 10);
$this->curl->options(array(CURLOPT_BUFFERSIZE => 10));

// More human looking options
$this->curl->option('buffersize', 10);

// Login to HTTP user authentication
$this->curl->http_login('username', 'password');

// Post - If you do not use post, it will just run a GET request
$post = array('foo'=>'bar');
$this->curl->post($post);

// Cookies - If you do not use post, it will just run a GET request
$vars = array('foo'=>'bar');
$this->curl->set_cookies($vars);

// Proxy - Request the page through a proxy server
// Port is optional, defaults to 80
$this->curl->proxy('http://example.com', 1080);
$this->curl->proxy('http://example.com');

// Proxy login
$this->curl->proxy_login('username', 'password');

// Execute - returns responce
echo $this->curl->execute();

// Debug data ------------------------------------------------

// Errors
$this->curl->error_code; // int
$this->curl->error_string;

// Information
$this->curl->info; // array

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df9760ff1aaa0f1fb15c3709a185da344408f5ee70afaf5507edfdb1800d5d52?d=identicon)[BitmanNL](/maintainers/BitmanNL)

---

Top Contributors

[![serzhenko](https://avatars.githubusercontent.com/u/638475?v=4)](https://github.com/serzhenko "serzhenko (2 commits)")[![ricick](https://avatars.githubusercontent.com/u/137188?v=4)](https://github.com/ricick "ricick (2 commits)")[![chadhutchins](https://avatars.githubusercontent.com/u/47898?v=4)](https://github.com/chadhutchins "chadhutchins (1 commits)")[![jimmypuckett](https://avatars.githubusercontent.com/u/3220069?v=4)](https://github.com/jimmypuckett "jimmypuckett (1 commits)")[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (1 commits)")[![pwhelan](https://avatars.githubusercontent.com/u/601645?v=4)](https://github.com/pwhelan "pwhelan (1 commits)")[![rhbecker](https://avatars.githubusercontent.com/u/224732?v=4)](https://github.com/rhbecker "rhbecker (1 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (1 commits)")[![Xyphex](https://avatars.githubusercontent.com/u/4851350?v=4)](https://github.com/Xyphex "Xyphex (1 commits)")[![BitmanNL](https://avatars.githubusercontent.com/u/11459708?v=4)](https://github.com/BitmanNL "BitmanNL (1 commits)")

### Embed Badge

![Health badge](/badges/bitmannl-codeigniter-curl/health.svg)

```
[![Health](https://phpackages.com/badges/bitmannl-codeigniter-curl/health.svg)](https://phpackages.com/packages/bitmannl-codeigniter-curl)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
