PHPackages                             swisnl/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. swisnl/zf-ioc

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

swisnl/zf-ioc
=============

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

0.2.1(8y ago)0266MITPHPPHP &gt;=5.4.0

Since Jun 21Pushed 3y ago2 watchersCompare

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

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

🚨 **THIS PACKAGE HAS BEEN ABANDONED** 🚨

We don't use this package anymore in our own projects and cannot justify the time needed to maintain it anymore. That's why we have chosen to abandon it. Feel free to fork our code and maintain your own copy or use one of the many alternatives.

ZF-IoC
======

[](#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

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~168 days

Recently: every ~252 days

Total

7

Last Release

3016d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8734305?v=4)[SWIS](/maintainers/swisnl)[@swisnl](https://github.com/swisnl)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/events

The Illuminate Events package.

13556.1M2.0k](/packages/illuminate-events)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.9M203](/packages/illuminate-broadcasting)[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k2.2M5](/packages/ashallendesign-short-url)[anahkiasen/former

A powerful form builder

1.3k1.4M14](/packages/anahkiasen-former)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)

PHPackages © 2026

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