Download the PHP package hospect/php-vars-to-js-bundle without Composer
On this page you can find all versions of the php package hospect/php-vars-to-js-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hospect/php-vars-to-js-bundle
More information about hospect/php-vars-to-js-bundle
Files in hospect/php-vars-to-js-bundle
Download hospect/php-vars-to-js-bundle
More information about hospect/php-vars-to-js-bundle
Files in hospect/php-vars-to-js-bundle
Vendor hospect
Package php-vars-to-js-bundle
Short Description Transformation of PHP vars to JS for Symfony2 with Twig
License MIT
Package php-vars-to-js-bundle
Short Description Transformation of PHP vars to JS for Symfony2 with Twig
License MIT
Please rate this library. Is it a good library?
Informations about the package php-vars-to-js-bundle
Description
Bundle allows you to avoid horrible statements in Twig templates while setting JS variables from PHP ones, like:
Installation
Simply require it with composer:
And register in your AppKernel.php
:
Usage
In your controller call:
Then in Twig template (probably that will be useful to move it to layout):
All versions of php-vars-to-js-bundle with dependencies
PHP Build Version
Package Version
Requires
laracasts/utilities Version
~2.0
twig/twig Version >=1.16
symfony/framework-bundle Version >=2.3
twig/twig Version >=1.16
symfony/framework-bundle Version >=2.3
The package hospect/php-vars-to-js-bundle contains the following files
Loading the files please wait ....