Download the PHP package orbiter/annotations-util without Composer
On this page you can find all versions of the php package orbiter/annotations-util. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download orbiter/annotations-util
More information about orbiter/annotations-util
Files in orbiter/annotations-util
Package annotations-util
Short Description Helper for Doctrine\Annotations, with cached Reflections ⚡
License MIT
Informations about the package annotations-util
Orbiter\AnnotationUtil
Helper utility for Doctrine\Annotations, uses cached reflection by scaleupstack/reflection.
Includes CodeInfo for static code analyzes, for easier, automatic parsing of Annotations and e.g. setup of DI.
- AnnotationsUtil
- Example Annotation
- CodeInfo
- License
Install with composer:
composer require orbiter/annotations-util
See doctrine docs for details on what Annotations are and complexer Examples.
AnnotationsUtil
Example Annotation
Define your annotation, remember to specify it in the Annotation loaders - normal autoloading doesn't work for classes using @Annotation
!
Using an annotation in a class:
Get value of the Annotation:
This example is a summarized version, using this utility to read in the end, from Doctrine\Annotations: Create Annotations.
Take a Look
Want to build console apps with dependency injection and annotations? Use this app skeleton: elbakerino/console, powered by PHP-DI, uses Doctrine\Annotations with this package.
Build event and middleware based apps with Satellite, DI enabled and with annotations for cli commands and routings..
License
This project is free software distributed under the MIT License.
See: LICENSE.
Contributors
By committing your code to the code repository you agree to release the code under the MIT License attached to the repository without the expectation of consideration.
Author: Michael Becker
All versions of annotations-util with dependencies
doctrine/annotations Version ^1.13.2
scaleupstack/reflection Version ^1.2
nikic/php-parser Version ^4.3.0