Download the PHP package alex-oleshkevich/zf-annotations without Composer
On this page you can find all versions of the php package alex-oleshkevich/zf-annotations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alex-oleshkevich/zf-annotations
More information about alex-oleshkevich/zf-annotations
Files in alex-oleshkevich/zf-annotations
Package zf-annotations
Short Description ZF2 module for annotated configuration.
License MIT
Homepage https://github.com/alex-oleshkevich/zf-annotations
Informations about the package zf-annotations
Annotations for Zend Framework.
This module provides "configuration via annotation" support for Zend Framework.
Out of the box it allows to define routes, service and all the ServiceManager-based implementations (as controllers, view helpers, etc).
The goal of this project is to get rid of large configuration arrays in application configs.
Requirements
- PHP >= 7.0.0
Please, note
-
if you want to use Zend libraries from Zend Framework 2, use ~1.0 versions. Branch ~2.0 supports future versions of Zend Framework and may not be compatible with ZF 1.
- Since version 2.3 the module does not use zendframework/zend-code as a backend and use doctrine/annotations directly. See doctrine documentation for more details and options.
Deprecations
- Config option "annotations" deprecated in favor of "namespaces".
Installation
Require via composer
Enable it in application.config.php
Configuration:
Components
- Router
- Services
Read how to add own annotations
- Custom annotations
Performance
This module is pretty fast, but anyway, parsing of lots of files on each request takes time.
The module subscribes to ModuleEvent::EVENT_MERGE_CONFIG
and scans every time its is triggered. If you have option
module_listener_options.config_cache_enabled
enabled, annotation parser will not do parsing unless you set config_cache_enabled
to false or remove a cache file. More info about caching here.
All versions of zf-annotations with dependencies
zendframework/zend-filter Version ~2.5 || ~3.0
zendframework/zend-servicemanager Version ^2.6 || ~3.0
zendframework/zend-eventmanager Version ^2.6 || ~3.0
zendframework/zend-modulemanager Version ~2.6 || ~3.0
doctrine/common Version ^2.6 || ~3.0
doctrine/annotations Version ^1.2
alex-oleshkevich/classnames Version ^1.0
zendframework/zend-mvc Version ^2.6 | ^3.0