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
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
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