PHPackages                             irishdan/js-settings-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. irishdan/js-settings-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

irishdan/js-settings-bundle
===========================

A bundle for injecting data as javascript into a page

v2.0(7y ago)133MITPHPPHP &gt;=7.1CI failing

Since Mar 2Pushed 7y agoCompare

[ Source](https://github.com/irishdan/JsSettingsBundle)[ Packagist](https://packagist.org/packages/irishdan/js-settings-bundle)[ Docs](https://github.com/irishdan/JsSettingsBundle)[ RSS](/packages/irishdan-js-settings-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

JsSettingsBundle
================

[](#jssettingsbundle)

This bundle provides a service and a twig extension for easily injecting data into a webpage as a javascript object.

[![Build Status](https://camo.githubusercontent.com/7316787496bcf39a4b1ff9a46e62cdd4624908d8d9c2d06752c7e87930af973b/68747470733a2f2f7472617669732d63692e6f72672f697269736864616e2f4a7353657474696e677342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/irishdan/JsSettingsBundle)

1: Installation
---------------

[](#1-installation)

Install with composer.

```
composer require irishdan/js-settings-bundle

```

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
