Dependency and Configruation Management Framework inspired by Guice and these two Google Talks:
https://github.com/alwinmark/benchmarking-dependency-injection-containers (currently only Benchmark 1 is implemented)
Install php5-curl
- on debian/ubuntu:
sudo apt-get install php5-curl
To install Puice put this into your composer.json
"alwinmark/Puice": "*"
For example:
{
"require": {
"alwinmark/puice": "1.0.0"
},
"require-dev": {
"behat/behat": "2.4.*@stable",
"behat/mink-extension": "*",
"behat/mink-selenium2-driver": "*",
"behat/mink-goutte-driver": "*",
"phpspec/phpspec": "2.0.*@dev"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "vendor/bin/"
},
"autoload": {"psr-0": {"": "src"}}
}
If you want to know how to use it, take a look at the feature file.
Maybe you have allready some Kind of Configuration/Injection Framework and you only want to use the Generic Factory Puice is providing. If thats the case, you have to write some Gluecode, that implements the Puice\Config Interface and pass it to the Factory.
MIT