dev-master
9999999-devFusionCharts Bundle for Symfony2
The Requires
by Casey Coones
symfony fusioncharts
FusionCharts Bundle for Symfony2
FusionCharts Bundle for Symfony2, (*1)
FusionCharts XT (v3.3.1 - Service Release 2), (*2)
``` js // composer.json, (*3)
{ "require": { // ... "lordbaine/fusion-charts-bundle": "dev-master" } }, (*4)
### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new LordBaine\FusionChartsBundle\LordBaineFusionChartsBundle(), // ... ); }
``` bash $ php composer.phar update lordbaine/fusion-charts-bundle, (*5)
### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources, (*6)
``` bash $ php app/console assets:install --symlink web, (*7)
## Usage Refer to the desired files in your HTML template, e.g. ``` html {% javascripts '@LordBaineFusionChartsBundle/Resources/public/js/FusionCharts.js' %} <script type="text/javascript" src="{{ asset_url }}"></script> {% endjavascripts %}
Refer to the source code of the included files for license information, (*8)
FusionCharts Bundle for Symfony2
symfony fusioncharts