2017 © Pedro Peláez
 

symfony-bundle highcharts-bundle

Integrates PHP Highcharts into your Symfony2 application

image

misd/highcharts-bundle

Integrates PHP Highcharts into your Symfony2 application

  • Monday, February 18, 2013
  • by thewilkybarkid
  • Repository
  • 5 Watchers
  • 2 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HighchartsBundle

This bundle is currently under development., (*1)

This bundle integrates PHP Highcharts into your Symfony2 application, which allows the programmatic creation of Highcharts., (*2)

Authors

Requirements

Installation

  1. Add HighchartsBundle to your dependencies:, (*3)

    // composer.json
    
    {
       // ...
       "require": {
           // ...
           "misd/highcharts-bundle": "dev-master"
       }
    }
  2. Use Composer to download and install HighchartsBundle:, (*4)

    $ php composer.phar update misd/highcharts-bundle
  3. Register the bundle in your application:, (*5)

    // app/AppKernel.php
    
    class AppKernel extends Kernel
    {
        // ...
        public function registerBundles()
        {
            $bundles = array(
                // ...
                new Misd\HighchartsBundle\MisdHighchartsBundle()
            );
        }
    }

Usage

Creating a chart

See the PHP Highcharts documentation for details on how to create a chart object., (*6)

Rendering a chart

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); ?>

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*10)

The Versions

18/02 2013

dev-master

9999999-dev https://github.com/misd-service-development/highcharts-bundle

Integrates PHP Highcharts into your Symfony2 application

  Sources   Download

MIT

The Requires

 

by Chris Wilkinson

bundle chart highcharts graph charts graphs