PHPackages                             ioc-interop/impl - 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. ioc-interop/impl

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

ioc-interop/impl
================

Reference implementations of Ioc-Interop.

1.x-dev(3mo ago)01MITPHPPHP ^8.4CI passing

Since Jan 31Pushed 3mo agoCompare

[ Source](https://github.com/ioc-interop/impl)[ Packagist](https://packagist.org/packages/ioc-interop/impl)[ Docs](https://github.com/ioc-interop/impl/)[ RSS](/packages/ioc-interop-impl/feed)WikiDiscussions 1.x Synced 1mo ago

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

ioc-interop/impl
================

[](#ioc-interopimpl)

[![PDS Skeleton](https://camo.githubusercontent.com/50d01a5094afcc3a827c3cadaec43d23b2a256cb249f5fdd6e5ffdb53ea7971c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-pds/skeleton)[![PDS Composer Script Names](https://camo.githubusercontent.com/0c17df07fd0a51ad878f1de0d4c17ea8e460f2e96ce796c8cd58e6c96ed9c08d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d636f6d706f7365722d2d7363726970742d2d6e616d65732d626c75653f7374796c653d666c61742d737175617265)](https://github.com/php-pds/composer-script-names)

This package offers a reference implementation all the Ioc-Interop interface to present a typical "open" autowired container.

Installation
------------

[](#installation)

```
$ composer require ioc-interop/impl

```

Getting Started
---------------

[](#getting-started)

```
use IocInterop\Impl\Container;
use IocInterop\Interface\IocContainer;

$ioc = new Container();
```

Getting Services
----------------

[](#getting-services)

```
$foo = $ioc->getService(Foo::class);
```

Setting Service Instances
-------------------------

[](#setting-service-instances)

```
$ioc->setService(Foo::class, new Foo());
```

Setting Service Aliases
-----------------------

[](#setting-service-aliases)

```
$ioc->setAlias('foo.foo', Foo::class);
$foo = $ioc->getService('foo.foo');
```

Defining Services
-----------------

[](#defining-services)

### Service Factory

[](#service-factory)

```
$ioc->getDefinition(Foo::class)
    ->setFactory(fn (IocContainer $ioc) : Foo => return new Foo());
```

### Service Extenders

[](#service-extenders)

```
$ioc->getDefinition(Foo::class)
    ->addExtender(function (IocContainer $ioc, Foo $foo) : Foo {
        $foo->bar = 'baz';
        return $foo;
    });
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance80

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

---

Top Contributors

[![pmjones](https://avatars.githubusercontent.com/u/25754?v=4)](https://github.com/pmjones "pmjones (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ioc-interop-impl/health.svg)

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

###  Alternatives

[eadesigndev/module-fullbreadcrumbs

Full breadcrumbs for product page

223.9k](/packages/eadesigndev-module-fullbreadcrumbs)

PHPackages © 2026

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