2017 © Pedro Peláez
 

library annotations

A simple and directly handler for docblock and annotations for PHP

image

devsdmf/annotations

A simple and directly handler for docblock and annotations for PHP

  • Sunday, March 29, 2015
  • by devsdmf
  • Repository
  • 1 Watchers
  • 2 Stars
  • 870 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Annotations Handler

Build Status Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight, (*1)

A simple and directly handler for docblock and annotations for PHP, (*2)

Installation

Just add the following dependency line to your composer.json file:, (*3)

{
    "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., (*4)

Adapters

  • ReflectionClass
  • ReflectionFunction
  • ReflectionMethod
  • ReflectionObject
  • ReflectionProperty

Tests

To run the test suite, you need install the require-dev dependencies:, (*5)

$ composer install --dev
$ ./vendor/bin/phpunit

License

This library is licensed under the MIT license., (*6)

The Versions

29/03 2015

dev-master

9999999-dev

A simple and directly handler for docblock and annotations for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Lucas Mendes de Freitas

parser docblock annotations devsdmf

29/03 2015

dev-develop

dev-develop

A simple and directly handler for docblock and annotations for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Lucas Mendes de Freitas

parser docblock annotations devsdmf

16/01 2015

1.0.0

1.0.0.0

A simple and directly handler for docblock and annotations for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Lucas Mendes de Freitas

parser docblock annotations devsdmf