dev-master
9999999-devPer-object configuration from class annotations
MIT
The Requires
The Development Requires
by Tony Bogdanov
Wallogit.com
2017 © Pedro Peláez
Per-object configuration from class annotations
Per-object configuration from class annotations in PHP., (*4)
Install via Composer:, (*5)
composer require tonybogdanov/class-config
Configure the library by calling ClassConfig::register(), choosing a cache directory, cache strategy and optionally a config class namespace, once and only once prior to using any of the features., (*6)
Add an autoload PSR-4 entry in composer.json and point the ClassConfig\Cache\ namespace (or the one you've configured) to the cache folder you chose., (*7)
Until doctrine/annotations reaches version 2.0 you'll also need to manually register the composer autoloader with the annotations' registry:, (*8)
$loader = include 'vendor/autoload.php'; \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
Alternatively you can try indigophp/doctrine-annotation-autoload., (*9)
Run the tests:, (*10)
./bin/run-tests.sh
Check the Coverage., (*11)
TODO, (*12)
Check the Docs, (*13)
Per-object configuration from class annotations
MIT