smalldb / annotations
Docblock Annotations Parser based on Doctrine Annotations
Requires
- php: ^7.1 || ^8.0
- ext-tokenizer: *
- doctrine/lexer: 1.*
Requires (Dev)
- phpstan/phpstan: ^0.12.20
- phpunit/phpunit: ^7.5 || ^9.1.5
This package is auto-updated.
Last update: 2024-12-05 06:57:24 UTC
README
Docblock Annotations Parser library based on Doctrine Annotations.
The motivation for this fork of Doctrine Annotations is to ease the implementation of backwards-incompatible features which are difficult to incorporate in such a widely used library.
Added features:
-
Support for Class constant annotations --- see
Reader::getConstantAnnotations()
. -
RecursiveAnnotationReader
collects annotations from parent classes in addition to the given class and returns the list of all annotations sorted from the oldest ancestor to the requested class.
Removed features:
-
All caching readers are removed, because the annotations are further processed and the final result should be cached.
-
AnnotationRegistry
is removed as well in favor of the use of standard PHP autoloader.
Documentation
See the doctrine-project website.
Contributing
When making a pull request, make sure your changes follow the Coding Standard Guidelines.
Changelog
See CHANGELOG.md.