dev-master
9999999-dev https://github.com/misd-service-development/highcharts-bundleIntegrates PHP Highcharts into your Symfony2 application
MIT
The Requires
by Chris Wilkinson
bundle chart highcharts graph charts graphs
Wallogit.com
2017 © Pedro Peláez
Integrates PHP Highcharts into your Symfony2 application
This bundle is currently under development., (*1)
This bundle integrates PHP Highcharts into your Symfony2 application, which allows the programmatic creation of Highcharts., (*2)
Add HighchartsBundle to your dependencies:, (*3)
// composer.json
{
// ...
"require": {
// ...
"misd/highcharts-bundle": "dev-master"
}
}
Use Composer to download and install HighchartsBundle:, (*4)
$ php composer.phar update misd/highcharts-bundle
Register the bundle in your application:, (*5)
// app/AppKernel.php
class AppKernel extends Kernel
{
// ...
public function registerBundles()
{
$bundles = array(
// ...
new Misd\HighchartsBundle\MisdHighchartsBundle()
);
}
}
See the PHP Highcharts documentation for details on how to create a chart object., (*6)
Use the service:, (*7)
$chart = $this->container->get('misd_highcharts.renderer')->render($chart);
$container = $this->container->get('misd_highcharts.renderer')->renderContainer($chart);
In a Twig template:, (*8)
{{ highcharts_render(chart) }}
{{ highcharts_render_container(chart) }}
In a PHP template:, (*9)
<?php echo $view['misd_highcharts.renderer']->render($chart); ?> <?php echo $view['misd_highcharts.renderer']->renderContainer($chart); ?>
Issues and feature requests are tracked in the Github issue tracker., (*10)
Integrates PHP Highcharts into your Symfony2 application
MIT
bundle chart highcharts graph charts graphs