alcalyn / js-vars
Class to contains variables, routes and translations to pass to javascript.
v1.0
2015-03-01 14:53 UTC
Requires
- php: >=5.3.2
- symfony/routing: ~2.1
- symfony/translation: ~2.1
This package is not auto-updated.
Last update: 2024-11-13 08:38:31 UTC
README
Simple class to pass variables to javascript.
Installation
Using composer:
{
"require": {
"alcalyn/js-vars": "dev-master"
}
}
Usage
This class can be used as service (on Symfony or Silex) to easily pass variables to Javascript from controllers, or from another services.
Coupled to symfony/translation or symfony/routing, you can pass translations or urls.
See Integration to Symfony2, or Integration to Silex.
License
This bundle is under the MIT license. See the complete license: