solution10 / managed-instance
A simple trait to allow classes to manage their own instances. DI on the cheap.
v1.0.0
2014-11-07 20:27 UTC
Requires
- php: >= 5.4
Requires (Dev)
- apigen/apigen: dev-master
- phpunit/phpunit: ~4.1
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: ~1.0
This package is not auto-updated.
Last update: 2024-12-17 02:30:24 UTC
README
Allows classes to manage instances of themselves either as singletons or "lazy DI" containers.
Installation
Installation is via composer, in the usual manner:
{ "require": { "solution10/managed-instance": "~1.0" } }
Documentation
Userguide
(or the /docs folder in the repo)
API Docs
From a checkout of this project, run:
$ make
This will create an api/ folder for you to peruse.
PHP Requirements
- PHP >= 5.4