PHPackages                             gfazioli/laravel-morris-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gfazioli/laravel-morris-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gfazioli/laravel-morris-php
===========================

Laravel Service Provider for morris.js

1.0.4(9y ago)42.5k[1 issues](https://github.com/gfazioli/Laravel-Morris-PHP/issues)MITPHPPHP &gt;=5.4.0

Since Oct 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gfazioli/Laravel-Morris-PHP)[ Packagist](https://packagist.org/packages/gfazioli/laravel-morris-php)[ Docs](https://github.com/gfazioli/laravel-morris-php)[ RSS](/packages/gfazioli-laravel-morris-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Laravel Morris PHP
==================

[](#laravel-morris-php)

[![Latest Stable Version](https://camo.githubusercontent.com/30126ac1d5667a4eda779685de574bf1b2b186490e298804c87f1b9496f0b81e/68747470733a2f2f706f7365722e707567782e6f72672f6766617a696f6c692f6c61726176656c2d6d6f727269732d7068702f76657273696f6e2e737667)](https://packagist.org/packages/gfazioli/laravel-morris-php)[![Total Downloads](https://camo.githubusercontent.com/74a4c091c4f033498e31805a645ae35e83a0159aefc73ffd39dd543031394793/68747470733a2f2f706f7365722e707567782e6f72672f6766617a696f6c692f6c61726176656c2d6d6f727269732d7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/gfazioli/laravel-morris-php)[![Latest Unstable Version](https://camo.githubusercontent.com/85438e65304b11e94883154ce088615fcae3e22cdd38f5aa2deeb648eaebf23a/68747470733a2f2f706f7365722e707567782e6f72672f6766617a696f6c692f6c61726176656c2d6d6f727269732d7068702f762f756e737461626c652e737667)](https://packagist.org/packages/gfazioli/laravel-morris-php)[![License](https://camo.githubusercontent.com/c0b4805db1950ca226098ad48026ac605fbb4af48819f3af466b6ecce28800ee/68747470733a2f2f706f7365722e707567782e6f72672f6766617a696f6c692f6c61726176656c2d6d6f727269732d7068702f6c6963656e73652e737667)](https://packagist.org/packages/gfazioli/laravel-morris-php)

Laravel Morris PHP is the version for Laravel of [MorrisPHP](https://github.com/gfazioli/morris-php)With this Service Provider, you can draw amazing char by usign [Morris.js](http://morrisjs.github.io/morris.js/).

Requirements
------------

[](#requirements)

- PHP 5.5.9 or greater
- Laravel 5.4 or greater

Installation
------------

[](#installation)

```
composer require gfazioli/laravel-morris-php

```

Laravel
-------

[](#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`

```
'providers' => [
  ...
  gfazioli\Morris\MorrisServiceProvider::class,
],
```

and then add the facade to your `aliases` array

```
'aliases' => [
  ...
  'Morris' => gfazioli\Morris\Facades\MorrisFacade::class,
],
```

HTML
----

[](#html)

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

```

```

Examples
--------

[](#examples)

```

xkey( [ 'y' ] )
           ->ykeys( [ 'a', 'b' ] )
           ->labels( [ 'Series A', 'Series B' ] )
           ->hoverCallback( 'function(index, options, content){var row = options.data[index];return "sin(" + row.x + ") = " + row.y;}' )
           ->data( [
                     [ "y" => '2006', "a" => 100, "b" => 90 ],
                     [ "y" => '2007', "a" => 75, "b" => 65 ],
                     [ "y" => '2008', "a" => 50, "b" => 40 ],
                     [ "y" => '2009', "a" => 75, "b" => 65 ],
                     [ "y" => '2010', "a" => 50, "b" => 40 ],
                     [ "y" => '2011', "a" => 75, "b" => 65 ],
                     [ "y" => '2012', "a" => 100, "b" => 90 ]
                   ] );
```

```

xkey( [ 'y' ] )
           ->ykeys( [ 'a', 'b' ] )
           ->labels( [ 'Series A', 'Series B' ] )
           ->data( [
                     [ "y" => '2006', "a" => 100, "b" => 90 ],
                     [ "y" => '2007', "a" => 75, "b" => 65 ],
                     [ "y" => '2008', "a" => 50, "b" => 40 ],
                     [ "y" => '2009', "a" => 75, "b" => 65 ],
                     [ "y" => '2010', "a" => 50, "b" => 40 ],
                     [ "y" => '2011', "a" => 75, "b" => 65 ],
                     [ "y" => '2012', "a" => 100, "b" => 90 ]
                   ] );
```

```

data( [
                     [ "label" => "Download Sales", "value" => 12 ],
                     [ "label" => "In-Store Sales", "value" => 30 ],
                     [ "label" => "Mail-Order Sales", "value" => 20 ]
                   ] );
```

```

xkey( [ 'date' ] )
           ->ykeys( [ 'value' ] )
           ->labels( [ 'Money' ] )
           ->data( [
                     [ 'date' => '2010', 'value' => 88 ],
                     [ 'date' => '2011', 'value' => 18 ],
                     [ 'date' => '2012', 'value' => 28 ],
                     [ 'date' => '2013', 'value' => 48 ],
                   ] );
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Total

5

Last Release

3404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3eb65ad928faf1a3303497a2f9e3bb8db51ebcb09dc21c6ddc3546b4bdc9c2b4?d=identicon)[gfazioli](/maintainers/gfazioli)

---

Top Contributors

[![gfazioli](https://avatars.githubusercontent.com/u/432181?v=4)](https://github.com/gfazioli "gfazioli (7 commits)")

---

Tags

facadelaravellaravel-5-packagelaravel-morris-phplaravel-packagesmorrisphpphp-7phpjavascriptchartsmorris

### Embed Badge

![Health badge](/badges/gfazioli-laravel-morris-php/health.svg)

```
[![Health](https://phpackages.com/badges/gfazioli-laravel-morris-php/health.svg)](https://phpackages.com/packages/gfazioli-laravel-morris-php)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3762.3M5](/packages/ghunti-highcharts-php)[hisune/echarts-php

A php wrapper for echarts javascript libraries

330208.8k5](/packages/hisune-echarts-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
