PHPackages                             smilesrg/pipelineparser-bundle - 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. smilesrg/pipelineparser-bundle

ActiveLibrary

smilesrg/pipelineparser-bundle
==============================

Pipeline comments parser for FOSCommentBundle

06PHP

Since Mar 30Pushed 11y ago2 watchersCompare

[ Source](https://github.com/smilesrg/PipelineParserBundle)[ Packagist](https://packagist.org/packages/smilesrg/pipelineparser-bundle)[ RSS](/packages/smilesrg-pipelineparser-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Purpose
=======

[](#purpose)

Pipeline comments parser for FOSCommentBundle. Imagine that you need to integrate [ExerciseHTMLPurifierBundle parser](https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/9a-markup_htmlpurifier.md), hashtag parser, user mention parser... it's better to have several parsers where each is responsible for their actions. That's why I decided to write this bundle. This bundle is written for make chain (pipeline) of parser classes.

\#Usage

First, configure parser classes as services. You don't have to use all parsers that this bundle provides. The main parser of this bundle is PipelineParser which provides pipeline for parser classes.

```
    markup.mention_parser:
        #This is implementation of simple user mentioning parser like Twitter does
        class: Smilesrg\PipelineParserBundle\Parser\UserMentionParser
        # If you don't plan to use this parser somewhere in the code, it's better to make it private.
        # this should increase service container performance
        public: false
        arguments:
            - @fos_user.user_manager # FOS User Manager
            - @router # Router itself
            - "user_profile_show" # The route for showing user profile
            - "/\B\@([\w\-@]+)/im" # The regular expression pattern for user mentioning

    # See https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/9a-markup_htmlpurifier.md
    markup.exercise_html_purifier:
        class: FOS\CommentBundle\Markup\HtmlPurifier
        arguments: [ @exercise_html_purifier.default ]
```

Then, you have to define PipelineParser as a service and configure it with parsers.

```
    markuper.pipeline_parser:
        class: Smilesrg\PipelineParserBundle\Parser\PipelineParser
        calls:
            - [addToPipeline, ["@markup.exercise_html_purifier"]]
            - [addToPipeline, ["@markup.mention_parser"]]
```

The order of parsers is important. First parser that has been added to pipeline is executed first.

The last step is to use pipeline parser as described in [documentation](https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/9-using_a_markup_parser.md)

```
# app/config/config.yml

fos_comment:
    service:
        markup: markuper.pipeline_parser # The pipeline parser service
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/186468a511ad3fef7ccd3b712d8a3d70a5afea90764065f84ec67555617dbaa2?d=identicon)[smilesrg](/maintainers/smilesrg)

---

Top Contributors

[![smilesrg](https://avatars.githubusercontent.com/u/576284?v=4)](https://github.com/smilesrg "smilesrg (5 commits)")

### Embed Badge

![Health badge](/badges/smilesrg-pipelineparser-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/smilesrg-pipelineparser-bundle/health.svg)](https://phpackages.com/packages/smilesrg-pipelineparser-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
