Download the PHP package pattisahusiwa/dice-wrapper without Composer
On this page you can find all versions of the php package pattisahusiwa/dice-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pattisahusiwa/dice-wrapper
More information about pattisahusiwa/dice-wrapper
Files in pattisahusiwa/dice-wrapper
Package dice-wrapper
Short Description PSR-11 compliant for Level-2/Dice PHP dependency injection container
License BSD-2-Clause
Homepage https://github.com/pattisahusiwa/dice-wrapper
Informations about the package dice-wrapper
This repository is deprecated. Please use pattisahusiwa/dicontainer
Dice wrapper - PHP Dependency Injection Container
PSR-11 compliant for Level-2/Dice dependency injection container.
Dice is a minimalist Dependency Injection Container for PHP with a focus on being lightweight and fast as well as requiring as little configuration as possible.
Installation
Use composer to install the package. `
Usage
Please check Dice documentation for detail usage.
``
Limitations
You can't use DICE::SELF
in order to get DiceWrapper
instance. DICE::SELF
will return Dice
instance.
Current workaround is by adding Psr\Container\ContainerInterface
in your class constructor. The injector and the injected DiceWrapper
are the same object. However, you must carefully implement this into your projects as it can turn into a Service Locator.
``
Contributing
All form of contributions are welcome. You can report issues, fork the repo and submit pull request.
License
See the LICENSE file.