PHPackages                             smuuf/php-docblock-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. smuuf/php-docblock-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smuuf/php-docblock-parser
=========================

Just a simple PHP docblock parser.

0.1.1(4y ago)0420MITPHPPHP ^7.4|^8.0

Since Oct 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/smuuf/php-docblock-parser)[ Packagist](https://packagist.org/packages/smuuf/php-docblock-parser)[ RSS](/packages/smuuf-php-docblock-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

[![PHP tests](https://github.com/smuuf/php-docblock-parser/actions/workflows/php.yml/badge.svg)](https://github.com/smuuf/php-docblock-parser/actions/workflows/php.yml)

PHP Docblock Text Parser
========================

[](#php-docblock-text-parser)

Simple tool to parse PHP docblock text with ability to also read tags and their arguments in form:

```
/**
 * Some text.
 *
 * @whatever-tags(with-arguments: yes, or-even=these)
 */

```

... or you can parse text directly even without the block comment wrapping:

```
Some text.

@whatever-tags(with-arguments: yes, or-even=these)

```

Results of parsing
------------------

[](#results-of-parsing)

- `DocBlock`
    - Comment text *(title + body)*
    - Comment title
    - Comment body
    - `Tag` objects
        - Tag name
        - `TagArg` objects
            - Tag argument name
            - Tag argument Value

Example usage
-------------

[](#example-usage)

```
