定制 devsdmf/annotations 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devsdmf/annotations

最新稳定版本:1.0.1

Composer 安装命令:

composer require devsdmf/annotations

包简介

A simple and directly handler for docblock and annotations for PHP

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-16