devsdmf/annotations
最新稳定版本:1.0.1
Composer 安装命令:
composer require devsdmf/annotations
包简介
A simple and directly handler for docblock and annotations for PHP
README 文档
README
A simple and directly handler for docblock and annotations for PHP
Installation
Just add the following dependency line to your composer.json file:
{
"require": {
"devsdmf/annotations": "1.*"
}
}
Usage
use Devsdmf\Annotations\Reader; use ReflectionClass; $reflector = new ReflectionClass('MyClass'); $reader = new Reader(); $annotation = $reader->getClassAnnotations($reflector);
The example above work with the most of Reflector interface implementations, see the available adapters below.
Adapters
- ReflectionClass
- ReflectionFunction
- ReflectionMethod
- ReflectionObject
- ReflectionProperty
Tests
To run the test suite, you need install the require-dev dependencies:
$ composer install --dev
$ ./vendor/bin/phpunit
License
This library is licensed under the MIT license.
统计信息
- 总下载量: 4.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-16