PHPackages                             skrip42/twig-postprocessor-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. [Templating &amp; Views](/categories/templating)
4. /
5. skrip42/twig-postprocessor-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

skrip42/twig-postprocessor-bundle
=================================

Add postprocessor to twig

v1.0.0(5y ago)1301MITPHPPHP ^7.1

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Skrip42/TwigPostprocessorBundle)[ Packagist](https://packagist.org/packages/skrip42/twig-postprocessor-bundle)[ Docs](https://github.com/skrip42/TwigPostprocessorBundle)[ RSS](/packages/skrip42-twig-postprocessor-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

TwigPostprocessorBundle
=======================

[](#twigpostprocessorbundle)

symphony bundle that adds post-processing functionality to your twig

install
-------

[](#install)

```
composer require Skrip42/twig-postprocessor-bundle
```

usage
-----

[](#usage)

- create you own postprocessor that implements Skrip42\\Bundle\\TwigPostprocessorBundle\\PostprocessorInterface

```
namespace App\Twig;

use Skrip42\Bundle\TwigPostprocessorBundle\PostprocessorInterface;

class YouOwnProcessor implements PostprocessorInterface
{
  /**
   * @params string $content - raw html string
   * @params string $name - template name
   * @params array $context - array of template params
   *
   * @return string - modifyed html string
   */
  public function postProcess(
    string $content,
    string $name,
    array $context
  ): string {
    return someChange($content);
  }
}
```

- define you processo as twig postprocessor

```
  App\Twig\YouOwnProcessor:
    tags:[twig.postprocessor]
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac2ab44421653cebc795140356530287c37ba8c2011790683db6d2b316ea0e8d?d=identicon)[skrip42](/maintainers/skrip42)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/skrip42-twig-postprocessor-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/skrip42-twig-postprocessor-bundle/health.svg)](https://phpackages.com/packages/skrip42-twig-postprocessor-bundle)
```

PHPackages © 2026

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