alcalyn / js-vars
Class to contains variables, routes and translations to pass to javascript.
Installs: 450
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alcalyn/js-vars
Requires
- php: >=5.3.2
- symfony/routing: ~2.1
- symfony/translation: ~2.1
This package is not auto-updated.
Last update: 2025-10-01 13:14:28 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: