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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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