PackageTrack
Sign in Get early access

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 2022
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 4.0.4 28 Mar 2022
    Release notes

    Bugfixes:

    #201 - shareInstances not propagating correctly
    #195 - some parameters getting counted twice

    Open source →
  2. 4.0.3 20 Apr 2021

    Nothing published for this version

  3. 4.0.2 28 Jan 2020
    Release notes
    • 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. $args passed directly to $dice->create() and constructParams.
    Open source →
  4. 4.0.1 01 May 2019
    Release notes
    • Fixed issues with addRules
    • Better immutability support by clearing internal caches
    • Fixed bug #165 where wrong instance would sometimes be injected when using CHAIN_CALL
    • #167 - shared instances are also used when calling methods with call
    Open source →
  5. 3.0.0 08 Apr 2018

    Nothing published for this version

  6. 2.0.4 12 Jan 2018
    Release notes
    • Better PHP7 support
    • Fixes bug #134 - uses default value if no concrete class is available for hinted interface
    Open source →
  7. 2.0.3 13 Dec 2015

    Nothing published for this version

  8. 2.0.2 13 Oct 2015
    Release notes

    Fixed a bug where the autoloader was being triggered with lowercase class names

    Open source →
  9. v2.0.1 12 Aug 2015

    Nothing published for this version

  10. 2.0.0 25 Aug 2015

    Nothing published for this version

  11. 1.4.1 06 May 2015

    Nothing published for this version

  12. 4.0 15 Nov 2018
    Release notes

    This release implements immutability, Dice no longer acts in a mutable manner which makes it more predictable when being passed around an application.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive