PHPackages                             jeroenvandergeer/zf-ioc - 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. [Framework](/categories/framework)
4. /
5. jeroenvandergeer/zf-ioc

ActiveLibrary[Framework](/categories/framework)

jeroenvandergeer/zf-ioc
=======================

Controller action dependency injection in Zend Framework 1 using Laravel's IoC container.

0.1.4(10y ago)15811PHPPHP &gt;=5.4.0

Since Jun 21Pushed 10y agoCompare

[ Source](https://github.com/jeroenvandergeer/zf-ioc)[ Packagist](https://packagist.org/packages/jeroenvandergeer/zf-ioc)[ RSS](/packages/jeroenvandergeer-zf-ioc/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

\#ZF-IoC

Controller action dependency injection in Zend Framework 1.

Does not have the framework as a composer dependency to support legacy projects (as that is the only reason this package exists).

Currently requires PHP 5.4+ (as required by illuminate/container 5.0)

```
composer require jeroenvandergeer/zf-ioc
```

```
// Container of choice, can be any Laravel compatible container
$container = new \Illuminate\Container\Container();

// Build dispatcher with IoC container
$dispatcher = new \Jeroenvandergeer\ZfIoc\Dispatcher($container);

// Set / replace the dispatcher
$frontController = \Zend_Controller_Front::getInstance();
$frontController->setDispatcher($dispatcher);

// Optionally register the container with the Zend registry for global binding
\Zend_Registry::set('container', $container);

// Register binding
$container->bind('\App\FooInterface', function($container){
    return new \App\Foo($container['\App\Bar']);
});
```

Example #1
----------

[](#example-1)

```
public function indexAction(\App\FooInterface $foo)
{
    var_dump($foo);
}
```

```
object(App\Foo)
  public 'bar' =>
    object(App\Bar)

```

Example #2
----------

[](#example-2)

```
public function indexAction()
{
    $container = $this->getInvokeArg('container');
    var_dump($container->make('\App\Foo'));
}
```

```
object(App\Foo)
  public 'bar' =>
    object(App\Bar)

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~34 days

Total

5

Last Release

3894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/626452b7fc1c076b1d886e530b3b931f36091ab71d0fc5fb14b08eacec592236?d=identicon)[jeroenvandergeer](/maintainers/jeroenvandergeer)

---

Top Contributors

[![jayvdg](https://avatars.githubusercontent.com/u/4892952?v=4)](https://github.com/jayvdg "jayvdg (12 commits)")

### Embed Badge

![Health badge](/badges/jeroenvandergeer-zf-ioc/health.svg)

```
[![Health](https://phpackages.com/badges/jeroenvandergeer-zf-ioc/health.svg)](https://phpackages.com/packages/jeroenvandergeer-zf-ioc)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.5k91.9M595](/packages/laravel-passport)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)

PHPackages © 2026

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