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 ago4 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 today

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

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

2967d 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

[ashallendesign/short-url

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

1.4k1.9M4](/packages/ashallendesign-short-url)[illuminate/events

The Illuminate Events package.

13454.3M1.8k](/packages/illuminate-events)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[chelout/laravel-relationship-events

Missing relationship events for Laravel

5252.3M17](/packages/chelout-laravel-relationship-events)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)

PHPackages © 2026

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