https://github.com/phpactor/docblock
Docblock parser
https://github.com/phpactor/docblock
Last synced: 6 months ago
JSON representation
Docblock parser
- Host: GitHub
- URL: https://github.com/phpactor/docblock
- Owner: phpactor
- License: mit
- Archived: true
- Created: 2017-12-12T10:56:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T11:48:04.000Z (almost 4 years ago)
- Last Synced: 2025-05-28T21:53:56.619Z (8 months ago)
- Language: PHP
- Size: 171 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Docblock Parser
===============
**DEPRECATED**: See https://github.com/phpactor/docblock-parser for a better solution.
Sub-standard docblock parser.
```php
$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](https://github.com/phpDocumentor/ReflectionDocBlock) for
PHP-Documentor, however it is coupled to the PHPDocumentor type reflection
library. This library only cares about parsing docblocks badly for
[Phpactor](https://github.com/phpactor/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](https://github.com/phpactor/phpactor) repository.
- Join the `#phpactor` channel on the Slack [Symfony Devs](https://symfony.com/slack-invite) channel.