The ReflectionDocBlock component of phpDocumentor provides a DocBlock parser that is 100% compatible with the PHPDoc standard. With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock. In order to parse the DocBlock one needs a DocBlockFactory that can be instantiated using its createInstance factory method. Then we can use the create method of the factory to interpret the DocBlock. Please note that it is also possible to provide a class that has the getDocComment() method, such as an object of type ReflectionClass, the create method will read that if it exists. The create method will yield an object of type \phpDocumentor\Reflection\DocBlock whose methods can be queried. The composer requires phpdocumentor/reflection-docblock.

Features

  • 100% compatible with the PHPDoc standard
  • With this component, a library can provide support for annotations via DocBlocks
  • It can retrieve information that is embedded in a DocBlock
  • In order to parse the DocBlock, you need a DocBlockFactory
  • For examples, review the scripts in the /examples folder

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow ReflectionDocBlock

ReflectionDocBlock Web Site

Other Useful Business Software
Boon: The Agile Referral Hiring Platform Icon
Boon: The Agile Referral Hiring Platform

Tap your entire community to hire better talent, faster

Boon's agile referral platform expands your recruiting power 
through AI, automation, integrations, and gamification.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ReflectionDocBlock!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-06-30