phpactor/docblock

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple Docblock Parser

0.3.6 2022-03-08 11:46 UTC

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.