PHPackages                             mikepsinn/php-highcharts-exporter - 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. mikepsinn/php-highcharts-exporter

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

mikepsinn/php-highcharts-exporter
=================================

Export highcharts from PHP without running the NodeJS export server

1.0.4(6y ago)17.4k[1 issues](https://github.com/mikepsinn/php-highcharts-exporter/issues)[1 PRs](https://github.com/mikepsinn/php-highcharts-exporter/pulls)MITJavaScriptCI failing

Since Feb 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mikepsinn/php-highcharts-exporter)[ Packagist](https://packagist.org/packages/mikepsinn/php-highcharts-exporter)[ RSS](/packages/mikepsinn-php-highcharts-exporter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (8)Used By (0)

php-highcharts-exporter
=======================

[](#php-highcharts-exporter)

Generate Charts on Server Side using Highcharts without NodeJS

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3f7811d66df3e9f9bed5b39daeab7df306e3ef1c8447c0bd47ec23767eb17db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696b657073696e6e2f7068702d686967686368617274732d6578706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mikepsinn/php-highcharts-exporter)[![Build Status](https://camo.githubusercontent.com/39c1657acc56561e3f144f1434fc6025b8e996eb92274c57cec30d75bf3082d8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d696b657073696e6e2f7068702d686967686368617274732d6578706f727465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mikepsinn/php-highcharts-exporter)[![Quality Score](https://camo.githubusercontent.com/e5ce4439aeafd00bbef6136cbca2609940e8d10444122f82fb1b9d7a4b8738dc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d696b657073696e6e2f7068702d686967686368617274732d6578706f727465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mikepsinn/php-highcharts-exporter)[![Total Downloads](https://camo.githubusercontent.com/79474262ff978c8aaae5f473355ea3d0152556bca69cf5f9250aedc1550f2b83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696b657073696e6e2f7068702d686967686368617274732d6578706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mikepsinn/php-highcharts-exporter)

Install
-------

[](#install)

Via Composer

```
$ composer require mikepsinn/php-highcharts-exporter
```

Add the following post-install-cmd to your `composer.json` file so that phantomjs is executable

```
  "scripts": {
    "post-install-cmd": [
      "chmod +x vendor/mikepsinn/php-highcharts-exporter/phantomjs"
    ]
  }

```

Usage
-----

[](#usage)

```
$export = new HighchartsExport(HighchartsExport::getConfigContents('test-basic-line'));
$export->setOutputFileName("test-chart.png"); // optional
$export->setImageType("png"); // optional
$path = $export->getFilePath(); // Absolute output file path on server
$data = $export->getImageData(); // Raw image data can be saved to file
$html = $export->getHtml(); // Inline this in any html file
```

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mike P. Sinn](https://github.com/mikepsinn)
- [All Contributors](../../contributors)
- PhantomJS (phantomjs.org) is a headless WebKit scriptable with JavaScript.
- Highcharts JS (highcharts.com) is a JavaScript charting library based on SVG, with fallbacks to VML and canvas for old browsers.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

### Development Notes

[](#development-notes)

#### Test to Make Sure it Works With Known Good Options File

[](#test-to-make-sure-it-works-with-known-good-options-file)

- cd &amp;&amp; ./phantomjs highcharts-convert.js -infile test-options.json -constr Chart -outfile images/test.png

#### Basic Command Line Test

[](#basic-command-line-test)

- ./phantomjs highcharts-convert.js -infile test-basic-line.json -constr Chart -outfile images/basic-line.png

#### Command Line Usage

[](#command-line-usage)

- Save your highchart config to images/options.json
- cd &amp;&amp; ./phantomjs highcharts-convert.js -infile images/options.json -constr Chart -outfile images/test.png

[Tutorial](http://kodeinfo.com/post/generate-charts-on-server-side-using-highcharts)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2274d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7642c78105b87f67f3f8474d99fece963870ec6109c1abdfce4bcc2538646460?d=identicon)[mikepsinn](/maintainers/mikepsinn)

---

Top Contributors

[![mikepsinn](https://avatars.githubusercontent.com/u/2808553?v=4)](https://github.com/mikepsinn "mikepsinn (13 commits)")

---

Tags

highchartshighcharts-export-server

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mikepsinn-php-highcharts-exporter/health.svg)

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

###  Alternatives

[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3772.3M5](/packages/ghunti-highcharts-php)[miloschuman/yii-highcharts

Highcharts adapter for the Yii Framework

3379.4k](/packages/miloschuman-yii-highcharts)[muhamadrezaar/highcharts

Laravel Highcarts Packages

3146.7k](/packages/muhamadrezaar-highcharts)[mauro-moreno/laravel-highcharts

This is a package for generating a Highchart JSON config.

163.8k](/packages/mauro-moreno-laravel-highcharts)

PHPackages © 2026

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