PHPackages                             headzoo/polymer-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. headzoo/polymer-bundle

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

headzoo/polymer-bundle
======================

Symfony bundle and Twig extension for developing and deploying Polymer web components.

0.0.5.1(10y ago)11876[4 issues](https://github.com/headzoo/polymer-bundle/issues)MITPHPPHP &gt;=5.5.0

Since May 3Pushed 10y ago4 watchersCompare

[ Source](https://github.com/headzoo/polymer-bundle)[ Packagist](https://packagist.org/packages/headzoo/polymer-bundle)[ Docs](http://www.polyphonic-symfony.org)[ RSS](/packages/headzoo-polymer-bundle/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

Polyphonic Polymer Bundle
=========================

[](#polyphonic-polymer-bundle)

Symfony bundle and Twig extension for developing and deploying Polymer web components.

[![Build Status](https://camo.githubusercontent.com/517ab734e84d879ba13cd1ce32f72226d03aed4c1ebd420ec7660239afa5953f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686561647a6f6f2f706f6c796d65722d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/headzoo/polymer-bundle)[![Documentation](https://camo.githubusercontent.com/05959cb48d00f2dd929e9b0750b655cbbcbb672bd919a45abdfc68ded6ba369d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d72656164746865646f63732d626c75652e7376673f7374796c653d666c61742d737175617265)](http://www.polyphonic-symfony.org)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/headzoo/polymer-bundle/master/LICENSE.md)

[![Polyphonic Symfony](https://camo.githubusercontent.com/d27539db2b120243df82fb7311ff704ff0511e6ba9b1aebf90ce8695bc34a253/687474703a2f2f7777772e706f6c7970686f6e69632d73796d666f6e792e6f72672f656e2f6c61746573742f5f696d616765732f6c6f676f732d776964652e706e67)](https://camo.githubusercontent.com/d27539db2b120243df82fb7311ff704ff0511e6ba9b1aebf90ce8695bc34a253/687474703a2f2f7777772e706f6c7970686f6e69632d73796d666f6e792e6f72672f656e2f6c61746573742f5f696d616765732f6c6f676f732d776964652e706e67)

**This bundle is no where near production ready. Use at your own risk.**

The purpose of this bundle is making it easier to use and build Polymer web components within a Symfony project. Polyphonic handles the problems that come up when trying to build and use web components within Twig templates.

### Example Element

[](#example-element)

A simple example of using the `{% polymer element %}` Twig tag to create a custom `` element. This element displays "Hello, World!" by default, but the message can be changed by setting the `name` attribute.

Note that there's no need to add `` as the import statement is added automatically. The template is saved in the bundle directory at `Resources/public/elements/hello-world/hello-world.html.twig`.

```
{% polymer element "hello-world" attributes="name" %}

        Hello, {{name}}!

        Polymer({
            name: "World"
        });

{% endpolymer %}
```

Using the element in your views:

```
{% polymer import "@AcmeBundle:hello-world/hello-world.html.twig" %}

```

### Requirements

[](#requirements)

PHP 5.5.\*
Symfony 2.6.\*

### Installing

[](#installing)

Add `headzoo/polymer-bundle` to your composer.json requirements.

```
"require": {
    "headzoo/polymer-bundle": "0.0.3"
}
```

Run `composer update` and then add the bundle your AppKernel.php.

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            ...
            new Headzoo\Bundle\PolymerBundle\PolymerBundle(),
        )

        return $bundles;
    }
}
```

Add the following route to your `app/config/routing_dev.yml` file.

```
polymer:
	resource: "@PolymerBundle/Resources/config/routing.yml"
	prefix:   /_polymer
```

Next: [Read the full documentation](http://www.polyphonic-symfony.org)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Every ~8 days

Total

6

Last Release

3991d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/707209?v=4)[Sean H](/maintainers/headzoo)[@headzoo](https://github.com/headzoo)

---

Top Contributors

[![headzoo](https://avatars.githubusercontent.com/u/707209?v=4)](https://github.com/headzoo "headzoo (136 commits)")

---

Tags

symfonytwigjavascriptpolymerweb components

### Embed Badge

![Health badge](/badges/headzoo-polymer-bundle/health.svg)

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

###  Alternatives

[dms/twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

19296.3k](/packages/dms-twig-extension-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

22125.8k1](/packages/cg-kint-bundle)[nurikabe/star-rating-bundle

Symfony form type and Twig extension for quick integration of FyneWorks' Star Rating widget

113.1k](/packages/nurikabe-star-rating-bundle)

PHPackages © 2026

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