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
Skillfully - The future of skills based hiring Icon
Skillfully - The future of skills based hiring

Realistic Workplace Simulations that Show Applicant Skills in Action

Skillfully transforms hiring through AI-powered skill simulations that show you how candidates actually perform before you hire them. Our platform helps companies cut through AI-generated resumes and rehearsed interviews by validating real capabilities in action. Through dynamic job specific simulations and skill-based assessments, companies like Bloomberg and McKinsey have cut screening time by 50% while dramatically improving hire quality.
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