PHPackages                             michaeldrennen/highcharts - 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. michaeldrennen/highcharts

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

michaeldrennen/highcharts
=========================

A PHP library to easily make Highcharts for your site.

v0.09(1y ago)15.5k[1 PRs](https://github.com/michaeldrennen/Highcharts/pulls)MITPHPPHP ^7.2|^8.0CI failing

Since Oct 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/michaeldrennen/Highcharts)[ Packagist](https://packagist.org/packages/michaeldrennen/highcharts)[ RSS](/packages/michaeldrennen-highcharts/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (9)Dependencies (1)Versions (11)Used By (0)

Highcharts
==========

[](#highcharts)

[![Latest Stable Version](https://camo.githubusercontent.com/49dbb8bff3c135138fe0dd86c8e08f03ac412b65c85c0db3c7dc5911701da5e6/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f686967686368617274732f76657273696f6e)](https://packagist.org/packages/michaeldrennen/highcharts) [![Total Downloads](https://camo.githubusercontent.com/e584a9b2e9e0139363f30f652dddd49ace104f90b8e82211eaae3718a161b13b/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f686967686368617274732f646f776e6c6f616473)](https://packagist.org/packages/michaeldrennen/highcharts) [![License](https://camo.githubusercontent.com/b813339e3bc5290a0180ae238cf5e4ecdb2e2efa257cfbb994f373e823e89ee8/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f686967686368617274732f6c6963656e7365)](https://packagist.org/packages/michaeldrennen/highcharts) [![composer.lock available](https://camo.githubusercontent.com/fd82e6ef0f1fbd20dd55fafee0c3f0c441c80a13cd3ceacfabdafe4db8534484/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f686967686368617274732f636f6d706f7365726c6f636b)](https://packagist.org/packages/michaeldrennen/highcharts)

A PHP library that helps produce Highcharts graphs.

This library is functional, but needs some work before I release a v1.0

Usage of Highchart::simpleLine()
--------------------------------

[](#usage-of-highchartsimpleline)

```
$xAxisValues = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
$lines = [
            [
                    'name' => 'Installation & Developers',
                    'data' => [
                        43934, 48656, 65165, 81827, 112143, 142383,
                        171533, 165174, 155157, 161454, 154610, 168960,
                    ],
                ],
                [
                    'name' => 'Manufacturing',
                    'data' => [
                        24916, 37941, 29742, 29851, 32490, 30282,
                        38121, 36885, 33726, 34243, 31050, 33099,
                    ],
            ]
        ];
$title = "Very Important Chart";
$subTitle = "...seriously, it's important";
$height = 500;
$width = '100%';
$yAxisLable = "Centimeters";

$chart = Highchart::simpleLine( $xAxisValues, $lines, $title, $subtitle, $height, $width, $yAxisLabel);
```

```

        script(); ?>

        chart(); ?>

```

Breaking Change - 2019-05-15
----------------------------

[](#breaking-change---2019-05-15)

The latest release includes a breaking change to the library that now allows users to include "global" Highcharts options.

```
// These will be applied to every chart on this page.
$globalOptions = [
            'lang' => [
                'thousandsSep' => ",",
            ],
        ];

$localOptions = [
    'title'    => ['text' => "My First Chart"],
    'subtitle' => ['text' => "It needs data"],
    'yAxis'    => [
        [
            'title' => [
                           'text' => "Scores"
                       ],
            'type'            => 'linear',
            'floor'           => 0,
            'startOnTick'     => TRUE,
        ]
    ]
];
$chart = Highchart::make( 'highstock', 400, '100%' )
                  ->setGlobalOptions($globalOptions)
                  ->setLocalOptions( $localOptions );
```

```

        script(); ?>

        chart(); ?>

```

Sample localOptions
-------------------

[](#sample-localoptions)

```
[
            'title'         => [ 'text' => "This is the Title of the Graph" ],
            'subtitle'      => [ 'text' => "This is the subtitle of the graph" ],
            'chart'         => [
                'type' => 'column',
            ],
            'navigator'     => [
                'enabled' => FALSE,
            ],
            'scrollbar'     => [
                'enabled' => FALSE,
            ],
            'rangeSelector' => [
                'enabled' => FALSE,
            ],
            'legend'        => FALSE,
            'xAxis'         => [ [
                                     categories: [
                                        'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
                                        'Oct', 'Nov', 'Dec',
                                    ]
                                 ],
            ],
            'yAxis'         => [ [
                                     'min'           => 0,
                                     'allowDecimals' => FALSE,
                                     'title'         => [ 'text' => "Total Transactions Checked" ],
                                     'stackLabels'   => [
                                         'enabled' => TRUE,
                                         'style'   => [
                                             'fontWeight' => 'bold',
                                             'color'      => "(Highcharts.theme && Highcharts.theme.textColor) || 'gray'",
                                         ],
                                     ],

                                 ],
            ],
            'series'        => [
                [
                    'name' => 'Installation & Developers',
                    'data' => [
                        43934, 48656, 65165, 81827, 112143, 142383,
                        171533, 165174, 155157, 161454, 154610, 168960,
                    ],
                ],
                [
                    'name' => 'Manufacturing',
                    'data' => [
                        24916, 37941, 29742, 29851, 32490, 30282,
                        38121, 36885, 33726, 34243, 31050, 33099,
                    ],
                ],
                [
                    'name' => 'Sales & Distribution',
                    'data' => [
                        11744, 30000, 16005, 19771, 20185, 24377,
                        32147, 30912, 29243, 29213, 25663, 28978,
                    ],
                ],
                [
                    'name' => 'Operations & Maintenance',
                    'data' => [
                        null, null, null, null, null, null, null,
                        null, 11164, 11218, 10077, 12530,
                    ],
                ],
        ];
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~281 days

Recently: every ~3 days

Total

9

Last Release

550d ago

PHP version history (2 changes)v0.01PHP ^7.2

v0.04PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b701baeed9e105a4a117e363b478d932306516c9365b4f2e3ef2dfed358f608b?d=identicon)[michaeldrennen](/maintainers/michaeldrennen)

---

Top Contributors

[![michaeldrennen](https://avatars.githubusercontent.com/u/5288190?v=4)](https://github.com/michaeldrennen "michaeldrennen (51 commits)")

### Embed Badge

![Health badge](/badges/michaeldrennen-highcharts/health.svg)

```
[![Health](https://phpackages.com/badges/michaeldrennen-highcharts/health.svg)](https://phpackages.com/packages/michaeldrennen-highcharts)
```

###  Alternatives

[yemenpoint/filament-tree

Filament Tree field and page

281.5k](/packages/yemenpoint-filament-tree)

PHPackages © 2026

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