PHPackages                             belghiti/lava-charts - 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. belghiti/lava-charts

ActiveLibrary

belghiti/lava-charts
====================

PHP wrapper library for the Google Chart API

v3.2.1(3mo ago)0364↓100%MITPHPPHP &gt;=5.4.0

Since Jul 14Pushed 3mo agoCompare

[ Source](https://github.com/belghiti/lava-charts)[ Packagist](https://packagist.org/packages/belghiti/lava-charts)[ Docs](http://lavacharts.com)[ RSS](/packages/belghiti-lava-charts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (60)Used By (0)

Lavacharts 3.1.12
=================

[](#lavacharts-3112)

[![Total Downloads](https://camo.githubusercontent.com/a570b251d6bbeb1865afb8f999322e2b4231e82fe89aceb1a800e31444f47e87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b68696c6c2f6c6176616368617274732e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/khill/lavacharts)[![License](https://camo.githubusercontent.com/ad9fc7edc312d6400d1aa0a11bafa84618fd15e212c865b0bc227d64b2b9c8ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b68696c6c2f6c6176616368617274732e7376673f7374796c653d706c6173746963)](http://opensource.org/licenses/MIT)[![Minimum PHP Version](https://camo.githubusercontent.com/7d4715af9e3037ac4255eb558443e8152179d36385a7b8a4341b80245acc317f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342d3838393242462e7376673f7374796c653d706c6173746963)](https://php.net/)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/kevinkhill/lavacharts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![PayPal](https://camo.githubusercontent.com/3ace80c744c83703a07e81b42be2c90b0259fd4c8be2fc7d08052307fee407d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e7376673f7374796c653d706c6173746963)](https://www.paypal.me/kevinkhill/)

Lavacharts is a graphing / chart library for PHP5.4+ that wraps the Google Chart API.

Stable: [![Current Release](https://camo.githubusercontent.com/571b9438941a983f07e6f4df399149f6e38c684bc0b47b00437dc44e10ae4b63/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b6576696e6b68696c6c2f6c6176616368617274732e7376673f7374796c653d706c6173746963)](https://github.com/kevinkhill/lavacharts/releases)[![Build Status](https://camo.githubusercontent.com/edf578684ee00e5ac3f4c47b971646ff6e4f76507f08a674c1259f932d4ee3d2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b6576696e6b68696c6c2f6c6176616368617274732f332e312e7376673f7374796c653d706c6173746963)](https://travis-ci.org/kevinkhill/lavacharts)[![Coverage Status](https://camo.githubusercontent.com/8f77aa29aa435525d0e83d7f33595ea7c263ed53579b7dd6aa6a2b2dd3c45e6b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6b6576696e6b68696c6c2f6c6176616368617274732f332e312e7376673f7374796c653d706c6173746963)](https://coveralls.io/r/kevinkhill/lavacharts?branch=3.1)

Dev: [![Development Release](https://camo.githubusercontent.com/2385fa58505f444d2446453c67cdb86a6bb347da79c2341689d5e7609f882ea7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d6465762d2d6d61737465722d627269676874677265656e2e7376673f7374796c653d706c6173746963)](https://github.com/kevinkhill/lavacharts/tree/master)[![Build Status](https://camo.githubusercontent.com/b997a6baa5efbc5b43dabab99013e9e2972f53fc00a0d17e14c135a410d9d134/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b6576696e6b68696c6c2f6c6176616368617274732f6d61737465722e7376673f7374796c653d706c6173746963)](https://travis-ci.org/kevinkhill/lavacharts)[![Coverage Status](https://camo.githubusercontent.com/783ffbe8bacec9ccacd6e1558cd5e36196dddf71b2461ccdf1bce90ba326e894/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6b6576696e6b68696c6c2f6c6176616368617274732f6d61737465722e7376673f7374796c653d706c6173746963)](https://coveralls.io/r/kevinkhill/lavacharts?branch=master)

Developer Note
--------------

[](#developer-note)

Please don't be discouraged if you see that it has been "years" since an update, but rather think that Lavacharts has settled into a "stable" state and requires less tinkering from me. I would love to add new features, but my responsibilities leave little room for my projects. I am happy to field issues, answer questions, debug and help if needed. Lavacharts is not vaporware! 😄

Package Features
----------------

[](#package-features)

- **Updated!** Laravel 5.5+ auto-discovery
- Any option for customizing charts that Google supports, Lavacharts should as well. Just use the chart constructor to assign any customization options you wish!
- Visit [Google's Chart Gallery](https://developers.google.com/chart/interactive/docs/gallery) for details on available options
- Custom JavaScript module for interacting with charts client-side
    - AJAX data reloading
    - Fetching charts
    - Events integration
- Column Formatters &amp; Roles
- Blade template extensions for Laravel
- Twig template extensions for Symfony
- [Carbon](https://github.com/briannesbitt/Carbon) support for date/datetime/timeofday columns
- Now supporting **22** Charts!
    - Annotation, Area, Bar, Bubble, Calendar, Candlestick, Column, Combo, Gantt, Gauge, Geo, Histogram, Line, Org, Pie, Sankey, Scatter, SteppedArea, Table, Timeline, TreeMap, and WordTree!

### For complete documentation, please visit [lavacharts.com](http://lavacharts.com/)

[](#for-complete-documentation-please-visit-lavachartscom)

#### Upgrade guide: [Migrating from 2.5.x to 3.0.x](https://github.com/kevinkhill/lavacharts/wiki/Upgrading-from-2.5-to-3.0)

[](#upgrade-guide-migrating-from-25x-to-30x)

#### For contributing, a handy guide [can be found here](https://github.com/kevinkhill/lavacharts/blob/master/.github/CONTRIBUTING.md)

[](#for-contributing-a-handy-guide-can-be-found-here)

---

Installing
----------

[](#installing)

In your project's main `composer.json` file, add this line to the requirements:

```
"khill/lavacharts": "^3.1"
```

Run Composer to install Lavacharts:

```
$ composer update
```

Framework Agnostic
------------------

[](#framework-agnostic)

If you are using Lavacharts with Silex, Lumen or your own Composer project, that's no problem! Just make sure to: `require 'vendor/autoload.php';` within you project and create an instance of Lavacharts: `$lava = new Khill\Lavacharts\Lavacharts;`

Laravel
-------

[](#laravel)

To integrate Lavacharts into Laravel, a ServiceProvider has been included.

### Laravel ~5.5

[](#laravel-55)

Thanks to the fantastic new [Package Auto-Discovery](https://laravel-news.com/package-auto-discovery) feature added in 5.5, you're ready to go, no registration required 👍

#### Configuration

[](#configuration)

To modify the default configuration of Lavacharts, datetime formats for datatables or adding your maps api key... Publish the configuration with `php artisan vendor:publish --tag=lavacharts`

### Laravel ~5.4

[](#laravel-54)

Register Lavacharts in your app by adding these lines to the respective arrays found in `config/app.php`:

```
