PHPackages                             unikent/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. unikent/curl

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

unikent/curl
============

Laravel Curl Helper Library.

5.0.8(10y ago)1442.4k10MITPHPPHP &gt;=5.5

Since Dec 7Pushed 10y ago19 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (6)Used By (0)

Laravel-cURL
============

[](#laravel-curl)

Laravel-cURL is a library born out of Codeigniter-cURL by Phil\[\] which makes it easy to do simple cURL requests and makes more complicated cURL requests easier too.

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

[](#requirements)

1. PHP 5.1+
2. Laravel 3
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

Download
--------

[](#download)

Examples
--------

[](#examples)

```
$this->curl = New 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

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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

Every ~11 days

Total

3

Last Release

3988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6fffeeef81877fdfaa26746e2dda067be2499d9ee1c22e655891fb86b7f4bc8?d=identicon)[cs462-unikent](/maintainers/cs462-unikent)

![](https://www.gravatar.com/avatar/d0b31a8485a38b583be4ac59ad9e0b1af20094dc7076521c8dcb452e40da90e5?d=identicon)[do225-unikent](/maintainers/do225-unikent)

---

Top Contributors

[![mogetutu](https://avatars.githubusercontent.com/u/411754?v=4)](https://github.com/mogetutu "mogetutu (2 commits)")[![conatus](https://avatars.githubusercontent.com/u/317734?v=4)](https://github.com/conatus "conatus (1 commits)")

---

Tags

phplaravelcurl

### Embed Badge

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

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

###  Alternatives

[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClient

59300.2k11](/packages/vinelab-http)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4983.9k](/packages/basement-chat-basement-chat)

PHPackages © 2026

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