2017 © Pedro Peláez
 

library class-config

Per-object configuration from class annotations

image

tonybogdanov/class-config

Per-object configuration from class annotations

  • Saturday, March 24, 2018
  • by TonyBogdanov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

ClassConfig

ApiGen Docs, (*1)

Latest Stable Version Latest Unstable Version Build Status Coverage Status Scrutinizer Code Quality, (*2)

License Buy Me Coffee, (*3)

Per-object configuration from class annotations in PHP., (*4)

Installation

Install via Composer:, (*5)

composer require tonybogdanov/class-config

Configuration

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)

Testing

Run the tests:, (*10)

./bin/run-tests.sh

Check the Coverage., (*11)

Usage

TODO, (*12)

API Docs

Check the Docs, (*13)

The Versions

24/03 2018

dev-master

9999999-dev

Per-object configuration from class annotations

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Bogdanov