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

AbandonedSymfony-bundle[HTTP &amp; Networking](/categories/http)

findologic/curl-bundle
======================

Allows you to easily create and execute HTTP Requests with cURL

v1.2(14y ago)096MITPHPPHP &gt;=5.3.2

Since Mar 10Pushed 13y ago2 watchersCompare

[ Source](https://github.com/findologic/ZeroemCurlBundle)[ Packagist](https://packagist.org/packages/findologic/curl-bundle)[ RSS](/packages/findologic-curl-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

RemoteHttpKernel
================

[](#remotehttpkernel)

The RemoteHttpKernel is provided as an alternative to the standard HttpKernel in Symfony. Rather than using the local application, it processes the Request object via cURL, parsing the results into a proper Response object.

Symfony Installation
====================

[](#symfony-installation)

First, checkout a copy of the code. Just add the following to the `deps`file of your Symfony Standard Distribution:

```
[ZeroemCurlBundle]
    git=git://github.com/zeroem/ZeroemCurlBundle.git
    target=/bundles/Zeroem/CurlBundle/

```

Then add the bundle to your AppKernel and register the namespace with the autoloader:

```
    // app/AppKernel.php
    $bundles = array(
        // ...
        new Zeroem\CurlBundle\ZeroemCurlBundle(),
        // ...
    );
```

```
    // app/autoload.php
    $loader->registerNamespaces(array(
        // ...
        'Zeroem'              => __DIR__.'/../vendor/bundles'
        // ...
    ));
```

Now use the `vendors` script to clone the newly added repository into your project:

```
    php bin/vendors install
```

Composer Installation
=====================

[](#composer-installation)

Add `zeroem/curl-bundle` to your composer.json file:

```
{
   ...
   "require": {
   ...
       "zeroem/curl-bundle": ""
   ...
   }
...
}
```

And include the composer autoloader:

```
require("./vendor/.composer/autoload.php");
```

Features
========

[](#features)

RemoteHttpKernel
----------------

[](#remotehttpkernel-1)

The `RemoteHttpKernel` provides the bridge between the the standard Request/Response architecture used by Symfony and the cURL library.

```
use Symfony\Component\HttpFoundation\Request;
use Zeroem\CurlBundle\HttpKernel\RemoteHttpKernel;

$request = Request::create("http://www.symfony.com");
$remoteKernel = new RemoteHttpKernel();
$response = $remoteKernel->handle($request);
```

### Caveats

[](#caveats)

Due to the way the HttpFoundation\\Request object generates the Request Uri, any changes made to Request::$query will not be reflected when the cURL request is made. I'm currently looking for a proper solution to this issue.

RequestGenerator
----------------

[](#requestgenerator)

The `RequestGenerator` simplifies building multiple, similar cURL Request Objects.

```
use Zeroem\CurlBundle\Curl\RequestGenerator;

$generator = new RequestGenerator(array(CURLOPT_RETURNTRANSFER=>true));

// Automatically has CURLOPT_RETURNTRANSFER set to true
$request = $generator->getRequest();
```

Goals
=====

[](#goals)

Provide a clean, Object Oriented solution for interacting with remote HTTP services that doesn't require knowing the ins and outs of all the various cURL api options nor invents it's own HTTP Request/Response architecture.

Motivation
==========

[](#motivation)

I was originally looking for a Symfony Bundle that provided an OO interface to the curl\_\* functions. Along the way, I realized that I didn't actually want a cURL wrapper, I wanted something that could execute HTTP requests and return the result in a meaningful way. So I decided to use the existing Symfony components and build a custom HttpKernelInterprovided, relegating cURL to an implementation detail rather than the purpose of the project.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.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 ~12 days

Total

2

Last Release

5212d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6971dc7475dbc578cb9aa4379421f56c493e1e849a6d94bf70b0b8e6194772bb?d=identicon)[g.sorst@findologic.com](/maintainers/g.sorst@findologic.com)

![](https://www.gravatar.com/avatar/2580a0085135ad277bff1c8c41d522c19e1d0a0e8d51aeaed52fccef796500c2?d=identicon)[motteneder](/maintainers/motteneder)

---

Top Contributors

[![zeroem](https://avatars.githubusercontent.com/u/205044?v=4)](https://github.com/zeroem "zeroem (108 commits)")[![motteneder](https://avatars.githubusercontent.com/u/32631?v=4)](https://github.com/motteneder "motteneder (5 commits)")[![rickard2](https://avatars.githubusercontent.com/u/488425?v=4)](https://github.com/rickard2 "rickard2 (1 commits)")

---

Tags

httpsymfonybundlecurlhttpkernel

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k181.3M2.2k](/packages/symfony-security-bundle)[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k853.6M8.3k](/packages/symfony-http-kernel)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)

PHPackages © 2026

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