level-2/dice
A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.
4.0.4
842K downloads/mo
#3974 most downloaded on Packagist
Level-2/Dice
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.1 years
Some releases are documented
notes for 6 of 12 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
12 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
12 releases · May 2015 to Mar 2022Releases
latest 12-
4.0.428 Mar 2022Release notes
Open source →Bugfixes:
#201 - shareInstances not propagating correctly
#195 - some parameters getting counted twice -
4.0.320 Apr 2021Nothing published for this version
-
4.0.228 Jan 2020Release notes
Open source →- Updated reflection to avoid a deprecation notice in PHP 7.4
- Better scalar matching logic when argument data is coming from multiple sources e.g.
$argspassed directly to$dice->create()andconstructParams.
-
4.0.101 May 2019 -
3.0.008 Apr 2018Nothing published for this version
-
2.0.412 Jan 2018Release notes
Open source →- Better PHP7 support
- Fixes bug #134 - uses default value if no concrete class is available for hinted interface
-
2.0.313 Dec 2015Nothing published for this version
-
2.0.213 Oct 2015Release notes
Open source →Fixed a bug where the autoloader was being triggered with lowercase class names
-
v2.0.112 Aug 2015Nothing published for this version
-
2.0.025 Aug 2015Nothing published for this version
-
1.4.106 May 2015Nothing published for this version
-
4.015 Nov 2018Release notes
Open source →This release implements immutability, Dice no longer acts in a mutable manner which makes it more predictable when being passed around an application.