PHPackages                             nercury/code-igniter-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. [Database &amp; ORM](/categories/database)
4. /
5. nercury/code-igniter-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

nercury/code-igniter-bundle
===========================

Allows loading Code Igniter as a bundle and eases migration to Symfony.

1.3.7(4y ago)87367MITPHPPHP &gt;=5.3.2

Since Feb 9Pushed 4y ago5 watchersCompare

[ Source](https://github.com/evispa/NercuryCodeIgniterBundle)[ Packagist](https://packagist.org/packages/nercury/code-igniter-bundle)[ Docs](https://github.com/Nercury/NercuryCodeIgniterBundle)[ RSS](/packages/nercury-code-igniter-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (1)Versions (16)Used By (0)

What it is
----------

[](#what-it-is)

Integrates CodeIgniter as a bundle in Symfony2.

Usage
-----

[](#usage)

Install bundle over composer, and load it in AppKernel:

```
$bundles = array(
    ...
    new Nercury\CodeIgniterBundle\NercuryCodeIgniterBundle(),
    ...
);
```

In case you are still using Symfony 2.0, do not forget to autoload the bundle in autoload.php:

```
'Nercury' => __DIR__.'/../vendor/nercury/code-igniter-bundle',
```

In config.yml, specify paths to CodeIgniter directories:

```
nercury_code_igniter:
    application_path: %kernel.root_dir%/../CodeIgniter_210/application
    system_path: %kernel.root_dir%/../CodeIgniter_210/system
```

Bundle uses a bit of code from CodeIgniter 2.1.0, so it should work the best with 2.1.0 version. Bundle automatically tries to detect code igniter controllers based on current URL. To disable this add the following line to config.yml:

```
nercury_code_igniter:
    ...
    detect_controllers: false
```

To get CI response in any symfony controller, use:

```
$response = $this->get("ci")->getResponse($request);
```

This method will redirect request handling to CodeIgniter and it's routing.

The need might arise just to use some legacy CodeIgniter code to get libraries, modules or even helpers. In that case, you can get CI instance:

```
$CI = & $this->get("ci")->getInstance();
```

In case "getResponse" was called before, it will return the controller used. Otherwise, a fake controller instance will be created. Therefore "getResponse" can not be used if "getInstance" was called.

Symfony2 container is available to CodeIgniter like a library. For example, to get a doctrine service in CI controller, call:

```
$this->symfony->get('doctrine');
```

To use Symfony2 database configuration in CodeIgniter, do this in database.php config file

```
$connection = $GLOBALS['CI_symfony']->get('doctrine')->getConnection(); // :)

$db['default']['hostname'] = $connection->getHost();
$db['default']['username'] = $connection->getUsername();
$db['default']['password'] = $connection->getPassword();
$db['default']['database'] = $connection->getDatabase();
```

That's it for now.

Contributions are welcome.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 70.2% 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 ~264 days

Recently: every ~410 days

Total

15

Last Release

1511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ddfa322db7376aeb74409dfb0d7a1349818e2567b8f3e3010d60d5a187d4ea9?d=identicon)[Tadcka](/maintainers/Tadcka)

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

![](https://avatars.githubusercontent.com/u/2358146?v=4)[Darius Krištapavičius](/maintainers/dariuszz123)[@dariuszz123](https://github.com/dariuszz123)

---

Top Contributors

[![Nercury](https://avatars.githubusercontent.com/u/106180?v=4)](https://github.com/Nercury "Nercury (40 commits)")[![dariuszz123](https://avatars.githubusercontent.com/u/2358146?v=4)](https://github.com/dariuszz123 "dariuszz123 (13 commits)")[![maZahaca](https://avatars.githubusercontent.com/u/1290067?v=4)](https://github.com/maZahaca "maZahaca (3 commits)")[![tadcka](https://avatars.githubusercontent.com/u/2020827?v=4)](https://github.com/tadcka "tadcka (1 commits)")

---

Tags

migrationcodeigniterciCode Igniter

### Embed Badge

![Health badge](/badges/nercury-code-igniter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nercury-code-igniter-bundle/health.svg)](https://phpackages.com/packages/nercury-code-igniter-bundle)
```

###  Alternatives

[rector/rector

Instant Upgrade and Automated Refactoring of any PHP code

10.3k123.1M6.0k](/packages/rector-rector)[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k7.4M24](/packages/kitloong-laravel-migrations-generator)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[expressodev/laravel-codeigniter-db

Integration layer allowing use of the Laravel database library in CodeIgniter applications

294.0k1](/packages/expressodev-laravel-codeigniter-db)[rougin/refinery

"Ready-to-eat" Codeigniter 3 migrations.

183.8k](/packages/rougin-refinery)

PHPackages © 2026

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