Download the PHP package headzoo/polymer-bundle without Composer
On this page you can find all versions of the php package headzoo/polymer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download headzoo/polymer-bundle
More information about headzoo/polymer-bundle
Files in headzoo/polymer-bundle
Package polymer-bundle
Short Description Symfony bundle and Twig extension for developing and deploying Polymer web components.
License MIT
Homepage http://www.polyphonic-symfony.org
Informations about the package polymer-bundle
Polyphonic Polymer Bundle
Symfony bundle and Twig extension for developing and deploying Polymer web components.
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
A simple example of using the {% polymer element %}
Twig tag to create a custom <hello-world><hello-world>
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 <link rel="import" href="polymer/polymer.html">
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
.
Using the element in your views:
Requirements
PHP 5.5.
Symfony 2.6.
Installing
Add headzoo/polymer-bundle
to your composer.json requirements.
Run composer update
and then add the bundle your AppKernel.php.
Add the following route to your app/config/routing_dev.yml
file.
All versions of polymer-bundle with dependencies
symfony/symfony Version >=2.6
twig/extensions Version ~1.0
symfony/assetic-bundle Version ~2.3
symfony/monolog-bundle Version ~2.4