git
ask
hub
Privacy
Terms
Sign in with GitHub
phpdocumentor/reflectiondocblock
↗
Stars ·
9,381
Language ·
PHP
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: phpdocumentor
Ask anything about this repo to start.
Show me how to use ReflectionDocBlock to read the @param and @return tags from a PHP function's DocBlock and print them as a plain-English summary.
I'm building a PHP framework that supports custom @Route annotations in DocBlocks. Walk me through using ReflectionDocBlock's factory to parse those tags from controller methods.
How do I install ReflectionDocBlock via Composer and write a script that accepts a PHP class name, reflects all its methods, and prints each method's DocBlock summary and parameter list?
Use ReflectionDocBlock to validate that all public methods in a PHP class have a non-empty DocBlock summary and at least one @param tag, return a list of non-compliant methods.
Explain the difference between passing a raw DocBlock string vs a PHP ReflectionMethod object to ReflectionDocBlock's factory, and when you'd use each approach.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).