PHPackages                             slick/di - 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. slick/di

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

slick/di
========

Slick package for dependency injection container.

v2.10.0(1y ago)07.5k—0%5MITPHPPHP &gt;=8.2

Since Dec 12Pushed 1y ago3 watchersCompare

[ Source](https://github.com/slickframework/di)[ Packagist](https://packagist.org/packages/slick/di)[ Docs](https://github.com/slickframework/di)[ RSS](/packages/slick-di/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (22)Used By (5)

Slick Di package
================

[](#slick-di-package)

[![Latest Version](https://camo.githubusercontent.com/47b3982dfeabe5b05ebd6c44c4e1e8d1421bf35aecfe8c1c991f61c3cd7fbc46/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736c69636b6672616d65776f726b2f64692e7376673f7374796c653d666c61742d737175617265)](https://github.com/slickframework/di/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/23601b5b73bedc576bd1a2a42e969aed288a99f56856472c182a934acc329860/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736c69636b6672616d65776f726b2f64692f636f6e74696e756f75732d696e746567726174696f6e2e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/slickframework/di/actions/workflows/continuous-integration.yml)[![Quality Score](https://camo.githubusercontent.com/1aebe47f1d5fc6c09428f5a074a4379f5d407f00e7593cbb1029c8ba6bc3f477/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736c69636b6672616d65776f726b2f64692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/slickframework/di?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c855abcf0e690e77485a45a77506f56b4eb923f4c4f08598a8d3e5ecf95740b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736c69636b2f64692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slick/di)

`slick/di` is an easy dependency injection container for PHP 8.0+.

It aims to be very lightweight and tries to remove a lot of the *guessing* and *magic*stuff that dependency containers use those days.

It also allows you to nest containers witch can become very useful if you have several packages that you reuse in your applications, allowing you to define containers with default dependencies in those packages for later override and usage them in your application.

This package is compliant with PSR-2 code standards and PSR-4 autoload standards. It also applies the [semantic version 2.0.0](http://semver.org) specification.

Install
-------

[](#install)

Via Composer

```
$ composer require slick/di
```

Usage
-----

[](#usage)

Please read `slick/orm` documentation at

Testing
-------

[](#testing)

We use [Behat](http://behat.org/en/latest/index.html) to describe features and for acceptance tests and [PHPSpec](http://www.phpspec.net/) for unit testing.

```
# unit tests
$ vendor/bin/phpspec

# acceptance tests
$ vendor/bin/behat
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Slick framework](https://github.com/slickframework)
- [All Contributors](https://github.com/slickframework/di/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

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

Recently: every ~494 days

Total

17

Last Release

641d ago

Major Versions

v1.0.2 → v2.0.02016-12-30

PHP version history (6 changes)v1.0.0PHP &gt;=5.5.0

v2.0.0PHP &gt;=5.6.0

v2.5.0PHP &gt;=7.1

v2.7.0PHP &gt;=7.4 || &gt;=8.0

v2.8.0PHP &gt;=8.0

v2.10.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101112?v=4)[fsilva](/maintainers/fsilva)[@fsilva](https://github.com/fsilva)

---

Top Contributors

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

---

Tags

slick-phpcontainerdependency-injectiondislick

###  Code Quality

TestsBehat

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/slick-di/health.svg)

```
[![Health](https://phpackages.com/badges/slick-di/health.svg)](https://phpackages.com/packages/slick-di)
```

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[mrclay/props-dic

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

3611.7M3](/packages/mrclay-props-dic)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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