NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist
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.
Latest stable
4.0.4
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.1 years
Nearly every release is documented
notes for 11 of 12 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
12 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Bugfixes: #201 - shareInstances not propagating correctly #195 - some parameters getting counted twice
Bugfixes:
#201 - shareInstances not propagating correctly #195 - some parameters getting counted twice
Removes call to deprecated ReflectionType::getClass()
ReflectionType::getClass()Your coding agent can read these notes before it upgrades. Set up the MCP server →
Updated reflection to avoid a deprecation notice in PHP 7.4
$args passed directly to $dice->create() and constructParams.Better immutability support by clearing internal caches
addRulescallSee readme for breakdown of changes
See readme for breakdown of changes
Fixes bug #134 - uses default value if no concrete class is available for hinted interface
Nothing published for this version
Fixed a bug where the autoloader was being triggered with lowercase class names
Fixed a bug where the autoloader was being triggered with lowercase class names
Since 2.0 dice has no longer been able to use substitutions with direct names e.g.
Minor bug fix: #82
Since 2.0 dice has no longer been able to use substitutions with direct names e.g.
$dice->addRule('ClassName', ['substitutions' => ['A' => 'B']);
This is now working as intended.
Version 2 of Dice. Please note: THIS IS NOT BACKWARDS COMPATIBLE.
Version 2 of Dice. Please note: THIS IS NOT BACKWARDS COMPATIBLE.
The rule syntax now uses arrays rather than objects. See https://r.je/dice.html for the updated syntax
Version 1.4.1. This release addresses bug #57 and should appear on packagist correctly.
Version 1.4.1. This release addresses bug #57 and should appear on packagist correctly.
This release implements immutability, Dice no longer acts in a mutable manner which makes it more predictable when being passed around an application.
This release implements immutability, Dice no longer acts in a mutable manner which makes it more predictable when being passed around an application.
One column per quarter.