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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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