PHPackages                             ronanchilvers/container-bridge-slim - 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. ronanchilvers/container-bridge-slim

ActiveLibrary[Framework](/categories/framework)

ronanchilvers/container-bridge-slim
===================================

Convenience bridge for using ronanchilvers/container with slim3

2.0(3y ago)01.8kMITPHPPHP ^8.0CI failing

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ronanchilvers/container-bridge-slim)[ Packagist](https://packagist.org/packages/ronanchilvers/container-bridge-slim)[ RSS](/packages/ronanchilvers-container-bridge-slim/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

container-bridge-slim
=====================

[](#container-bridge-slim)

[![Build Status](https://camo.githubusercontent.com/5f313084395508096e57af3d768477139a9e0f5f53e6de03ba270322e02f8c1d/68747470733a2f2f7472617669732d63692e6f72672f726f6e616e6368696c766572732f636f6e7461696e65722d6272696467652d736c696d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ronanchilvers/container-bridge-slim)[![codecov](https://camo.githubusercontent.com/65ab677c9f4da1b96d25d2697adbbd40fad923b7b84473d04cf9e5359bde94d9/68747470733a2f2f636f6465636f762e696f2f67682f726f6e616e6368696c766572732f636f6e7461696e65722d6272696467652d736c696d2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ronanchilvers/container-bridge-slim)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A bridge for using [ronanchilvers/container](https://github.com/ronanchilvers/container) with Slim3. This package allows you to replace the default slim3 container (Pimple) with ronanchilvers/container.

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

[](#installation)

The easiest way to install is via composer:

```
composer install ronanchilvers/container-bridge-slim

```

Usage
-----

[](#usage)

To replace the default slim container with ronanchilvers/container all you need to do is pass an instance of the container into the constructor of the slim app object. Here's an example:

```
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Ronanchilvers\Container\Slim\Container;
use Slim\App;

// Initialise a new container instance
$container = new Container();

// Pass the container instance into the app object's constructor
$app = new App($container);

$app->get('/', function (ServerRequestInterface $request, ResponseInterface $response) {
    return $response->write('hallo');
});
$app->run();
```

Controlling Slim settings is similar to the usual Slim mechanism:

```
use Ronanchilvers\Container\Slim\Container;
use Slim\App;

$container = new Container([
    'settings' => [
        'displayErrorDetails' => true,
    ]
]);

// Create the App object
$app = new App($container);
```

Testing
-------

[](#testing)

This is quite simple a simple bridge and has 100% test coverage. You can run the tests by doing:

```
./vendor/bin/phpunit

```

The default phpunit.xml.dist file creates coverage information in a build/coverage subdirectory.

Contributing
------------

[](#contributing)

If anyone has any patches they want to contribute I'd be more than happy to review them. Please raise a PR. You should:

- Follow PSR2
- Maintain 100% test coverage or give the reasons why you aren't
- Follow a one feature per pull request rule

License
-------

[](#license)

This software is licensed under the MIT license. Please see the [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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

Every ~574 days

Total

4

Last Release

1312d ago

Major Versions

1.2 → 2.02022-11-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6d7178329cb95270cfb9c807c3d2a6485d0f856c3d81cfe432e469e5f958748?d=identicon)[ronanchilvers](/maintainers/ronanchilvers)

---

Top Contributors

[![ronanchilvers](https://avatars.githubusercontent.com/u/87890?v=4)](https://github.com/ronanchilvers "ronanchilvers (37 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ronanchilvers-container-bridge-slim/health.svg)

```
[![Health](https://phpackages.com/badges/ronanchilvers-container-bridge-slim/health.svg)](https://phpackages.com/packages/ronanchilvers-container-bridge-slim)
```

###  Alternatives

[zubzet/framework

 A lightweight PHP framework focused on rapid development, ease of use, and great portability.

1370.1k1](/packages/zubzet-framework)[vesp/core

Vesp core library to make backend simple

243.9k5](/packages/vesp-core)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)

PHPackages © 2026

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