2017 © Pedro Peláez
 

library annotations

A simple API for reading any kind of annotations from PHP Class

image

leaditin/annotations

A simple API for reading any kind of annotations from PHP Class

  • Friday, November 24, 2017
  • by igorvuckovic
  • Repository
  • 0 Watchers
  • 4 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Leaditin\Annotations

A simple API for reading any kind of annotations from PHP Class, (*1)

![Build Status][ico-build] Code Quality Code Coverage Latest Version PDS Skeleton, (*2)

Installation

The preferred method of installation is via Composer. Run the following command to install the latest version of a package and add it to your project's composer.json:, (*3)

composer require leaditin/annotations

Usage

Instantiate your preferred storage to read doc block data of any Class in your project., (*4)

$collector = new \Leaditin\Annotations\Collector\MemoryCollector(
    new \Leaditin\Annotations\Reader\ReflectionReader()
);
$reflection = $collector->read(\Leaditin\Annotations\Reflection::class);

foreach ($reflection->getClassAnnotations() as $annotation) {
    printf('@%s %s%s',
        $annotation->getName(),
        $annotation->getArgument(0),
        PHP_EOL
    );
}

Credits

License

Released under MIT License - see the License File for details., (*5)

The Versions

24/11 2017

dev-master

9999999-dev

A simple API for reading any kind of annotations from PHP Class

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Igor Vuckovic

parser docblock annotations leaditin

24/11 2017

1.0.2

1.0.2.0

A simple API for reading any kind of annotations from PHP Class

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Igor Vuckovic

parser docblock annotations leaditin

16/09 2017

1.0.1

1.0.1.0

A simple API for reading any kind of annotations from PHP Class

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Igor Vuckovic

parser docblock annotations leaditin