Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alcalyn/js-vars
Simple class to pass variables to javascript. Also pass translations and route urls using Symfony.
https://github.com/alcalyn/js-vars
Last synced: 4 days ago
JSON representation
Simple class to pass variables to javascript. Also pass translations and route urls using Symfony.
- Host: GitHub
- URL: https://github.com/alcalyn/js-vars
- Owner: alcalyn
- License: mit
- Created: 2015-02-03T11:16:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T11:47:46.000Z (over 9 years ago)
- Last Synced: 2024-10-11T13:12:29.031Z (28 days ago)
- Language: PHP
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JsVars
======Simple class to pass variables to javascript.
## Installation
Using composer:
``` json{
{
"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](doc/integ_symfony2.md),
or [Integration to Silex](doc/integ_silex.md).## License
This bundle is under the MIT license. See the complete license:
[License](LICENSE)