phpactor / docblock
Simple Docblock Parser
Installs: 92 008
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.0
- friendsofphp/php-cs-fixer: ^2.17
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ~0.12.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2022-04-08 11:56:40 UTC
README
DEPRECATED: See https://github.com/phpactor/docblock-parser for a better solution.
Sub-standard docblock parser.
$docblock = (new DocblockFactory())->create('/** @var Foobar */'); $vars = $docblock->tags()->byName('var'); foreach ($vars as $var) { $var->type(); $var->varName(); }
Why?
There is already a standards-compliant library for PHP-Documentor, however it is coupled to the PHPDocumentor type reflection library. This library only cares about parsing docblocks badly for Phpactor.
Contributing
This package is open source and welcomes contributions! Feel free to open a pull request on this repository.
Support
- Create an issue on the main Phpactor repository.
- Join the
#phpactor
channel on the Slack Symfony Devs channel.