MorrisJS is a simple Javascript library used to draw simple beautiful charts. It is based on Raphael Javascript library.

A few time ago, I had written the first PHP version of this library. Now, I’m glad to release the Laravel service provider version of that library.

Requirements

  • PHP 5.5.9 or greater
  • Laravel 5.2 or greater

Installation

Laravel

We include service providers and a facade for easy integration and a nice syntax for Laravel.

Firstly, add the gfazioli\Morris\MorrisServiceProvider provider to the providers array in config/app.php

and then add the facade to your aliases array

HTML

Remember to include the following Javascript and styles before use Morris.

Examples