PHPackages                             crell/transformer-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. [Framework](/categories/framework)
4. /
5. crell/transformer-bundle

ActiveLibrary[Framework](/categories/framework)

crell/transformer-bundle
========================

Symfony Bridge for the Crell Transformer library.

261PHP

Since Jan 12Pushed 11y agoCompare

[ Source](https://github.com/Crell/TransformerBundle)[ Packagist](https://packagist.org/packages/crell/transformer-bundle)[ RSS](/packages/crell-transformer-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Transformer Bundle
==================

[](#transformer-bundle)

This is a Symfony integration package for the [Crell/Transformer](https://github.com/Crell/Transformer)library.

Usage
-----

[](#usage)

See the Transformer library README file for full usage information. This bundle adds the ability to register Symfony services and string-class-method names, ie, from a service container, as transformers.

```
class TransformerService
{
    public function transform(HtmlPage $h)
    {
        // .. Do stuff.
        return new Response();
    }
}

// Register TransformerService in the Container as "page_transformer".

$bus = new ContainerAwareTransformerBus(Response::class);
$bus->setContainer($container);
$bus->setTransformer(HtmlPage::class, 'page_transformer:transform');

$bus->transform(new HtmlPage());
```

In practice of course you would want to call setTransformer from your container configuration, not inline.

This bundle does *not* automatically register a transformer with the container. You will have to do that yourself, along with whatever configuration is appropriate for your application. (You can also, of course, register several different transformation pipelines for different use cases if appropriate.)

A suggested usage is to register a single transformation bus as a `kernel::VIEW`listener. That way, Controllers may return any number of different objects and they can all get folded down to a Response object with less overhead than registering a whole bunch of manually-ordered view listeners.

Installation
------------

[](#installation)

The preferred method of installation is via Composer with the following command:

```
composer require crell/transformer-bundle

```

See the \[Composer documentation\]\[2\] for more details.

Alternatively, clone the project and install into your project manually.

License
-------

[](#license)

This library is released under the MIT license. In short, "leave the copyright statement intact, otherwise have fun." See LICENSE for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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/12e28c223b88445f07d697c8805bd856066c947f70b535f6a7e00d2cb311c3c2?d=identicon)[Crell](/maintainers/Crell)

---

Top Contributors

[![Crell](https://avatars.githubusercontent.com/u/254863?v=4)](https://github.com/Crell "Crell (14 commits)")

### Embed Badge

![Health badge](/badges/crell-transformer-bundle/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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