PHPackages                             chippyash/slim-dic - 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. chippyash/slim-dic

ActiveLibrary[Framework](/categories/framework)

chippyash/slim-dic
==================

Symfony DIC integration for the Slim Framework

1.0.1(11y ago)1511GPL 3.0PHPPHP &gt;=5.5CI failing

Since Mar 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/chippyash/Slim-Dic)[ Packagist](https://packagist.org/packages/chippyash/slim-dic)[ Docs](http://the-matrix.github.io/)[ RSS](/packages/chippyash-slim-dic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

chippyash/Slim-Dic
==================

[](#chippyashslim-dic)

Quality Assurance
-----------------

[](#quality-assurance)

Coming soon!

What?
-----

[](#what)

Provides [Symfony Dependency Injection](http://symfony.com/doc/current/components/dependency_injection/introduction.html)for a [Slim Application](http://www.slimframework.com/)

Also provides a minimalist Controller pattern class for use in your applications.

For an example application that uses this library, please see [Slim-DIC Example](https://github.com/the-matrix/Slim-Dic-Example)

Why?
----

[](#why)

The Slim framework is great for lightweight sites but lacks the ease of creating testable, adaptable code that can be found when adopting a strict DI approach to development.

This small library supports the integration of the easy to use, yet powerful Symfony version of a DI container with the lightweight Slim Framework, giving you the ability to create great, maintainable and configurable web sites quickly.

How?
----

[](#how)

Changing the library
--------------------

[](#changing-the-library)

1. fork it
2. write the test
3. amend it
4. do a pull request

Found a bug you can't figure out?

1. fork it
2. write the test
3. do a pull request

NB. Make sure you rebase to HEAD before your pull request

Where?
------

[](#where)

The library is hosted at [Github](https://github.com/chippyash/Slim-Dic). It is available at [Packagist.org](https://packagist.org/packages/chippyash/slim-dic)

See [The (PHP) Matrix](http://the-matrix.github.io/packages/) for more PHP packages from this author.

### Installation

[](#installation)

Install [Composer](https://getcomposer.org/)

#### For production

[](#for-production)

add

```
    "chippyash/slim-dic": "~1.0"
```

to your composer.json "requires" section

#### For development

[](#for-development)

Clone this repo, and then run Composer in local repo root to pull in dependencies

```
    git clone git@github.com:chippyash/Slim-Dic.git Slimdic
    cd Slimdic
    composer install --dev
```

To run the tests:

```
    cd Slimdic
    vendor/bin/phpunit -c test/phpunit.xml test/
```

License
-------

[](#license)

This software library is released under the [BSD 3 Clause license](https://opensource.org/licenses/BSD-3-Clause)

This software library is Copyright (c) 2014-2018, Ashley Kitson, UK

History
-------

[](#history)

V1.0.0 Initial release

V1.0.1 Refactor getting controller name

V2.0.0 Change of license from GPL V3 to BSD 3 Clause, php version dependency update

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~26 days

Total

2

Last Release

4061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/198575568597b367c8b285de16d278018c8cf292c6c75c535270135c1eea0561?d=identicon)[chippyash](/maintainers/chippyash)

---

Top Contributors

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

---

Tags

symfonywebdependencyinjectionslim

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chippyash-slim-dic/health.svg)

```
[![Health](https://phpackages.com/badges/chippyash-slim-dic/health.svg)](https://phpackages.com/packages/chippyash-slim-dic)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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