alcalyn/js-vars

Class to contains variables, routes and translations to pass to javascript.

v1.0 2015-03-01 14:53 UTC

This package is not auto-updated.

Last update: 2024-12-11 09:04:21 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:

License