PHPackages                             xtreamwayz/pimple-container-interop - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. xtreamwayz/pimple-container-interop

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

xtreamwayz/pimple-container-interop
===================================

This project adds container-interop compatibility to Pimple 3.

1.0.0(10y ago)1419.4k3MITPHP

Since Dec 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/xtreamwayz/pimple-container-interop)[ Packagist](https://packagist.org/packages/xtreamwayz/pimple-container-interop)[ RSS](/packages/xtreamwayz-pimple-container-interop/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (3)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

Thank you so much for being interested in this project! Open Source is rewarding, but it can also be exhausting. Therefor this code is provided as-is, and is currently not actively maintained. We invite you to peruse the code and even use it in your next project, provided you follow the included license!

No guarantee of support for the code is provided, and there is no promise that pull requests will be reviewed or merged. It’s open source, so forking is allowed; just be sure to give credit where it’s due!

---

This container extends the Pimple 3 container. It also adds the *delegate lookup feature* from [container-interop](https://github.com/container-interop/container-interop).

Usage
-----

[](#usage)

```
use Xtreamwayz\Pimple\Container;

$container = new Container();
```

And now you can use all [Pimple features](https://github.com/silexphp/Pimple), and also have the `has` and `get`functions from container-interop.

Delegates
---------

[](#delegates)

The delegate lookup feature allows several containers to share entries. It can perform dependency lookups in other containers. They can be added with the `delegate($container)` function.

```
$container = new Xtreamwayz\Pimple\Container;
$container['hi'] = 'welcome';

$delegate1 = new Acme\Container\DelegateContainer;
$delegate1['foo'] = 'bar';
$container->delegate($delegate1);

$delegate2 = new Xtreamwayz\Pimple\Container;
$delegate2['baz'] = 'qux';
$container->delegate($delegate2);

// Resolve dependency from main $container
$container->has('hi'); // true
$container->get('hi'); // returns 'welcome';

// Resolve dependency from $delegate1
$container->has('foo'); // true
$container->get('foo'); // returns 'bar';

// Resolve dependency from $delegate2
$container->has('baz'); // true
$container->get('baz'); // returns 'qux';
```

Once the delegate has been registered and a lookup is not resolved in the main container, it tries the `has` and `get` methods of each delegate in the order it was registered.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5884735f970aea7052f8a5323f5c0b30e4b9efbe948bac9371b1fc0db1dfe4cc?d=identicon)[geerteltink](/maintainers/geerteltink)

---

Top Contributors

[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (33 commits)")

---

Tags

container-interopdependency-injectionpimple

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/xtreamwayz-pimple-container-interop/health.svg)

```
[![Health](https://phpackages.com/badges/xtreamwayz-pimple-container-interop/health.svg)](https://phpackages.com/packages/xtreamwayz-pimple-container-interop)
```

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.9k55.5M1.2k](/packages/php-di-php-di)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3512.7M3](/packages/mrclay-props-dic)[mouf/pimple-interop

This project is a very simple extension to the Pimple microframework. It adds to Pimple compatibility with the container-interop APIs.

102.5M2](/packages/mouf-pimple-interop)

PHPackages © 2026

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