PHPackages                             luismarto/phpopenchart - 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. luismarto/phpopenchart

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

luismarto/phpopenchart
======================

PHP library to draw Column, Bar, Line and Pie Charts

3.1.3(1y ago)21.7kGPL-3.0-or-laterPHPPHP &gt;=5.5

Since Oct 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luismarto/phpopenchart)[ Packagist](https://packagist.org/packages/luismarto/phpopenchart)[ Docs](https://geekalicious.pt/phpopenchart/)[ RSS](/packages/luismarto-phpopenchart/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (11)Used By (0)

PHP library to draw charts
--------------------------

[](#php-library-to-draw-charts)

Phpopenchart was based on Libchart and allows you to create charts using PHP. It's specially useful when you need to create charts on the server-side and so you can't use a front-end library such as Highcharts.

[![](https://camo.githubusercontent.com/961798062af849f945826456e5254e7241e67c6d609bbd4da16df2d5faa40be3/68747470733a2f2f6765656b616c6963696f75732e70742f7068706f70656e63686172742f6173736574732f696d616765732f7068706f70656e63686172742d73616d706c652d322e706e67)](https://camo.githubusercontent.com/961798062af849f945826456e5254e7241e67c6d609bbd4da16df2d5faa40be3/68747470733a2f2f6765656b616c6963696f75732e70742f7068706f70656e63686172742f6173736574732f696d616765732f7068706f70656e63686172742d73616d706c652d322e706e67)

```
use Phpopenchart\Chart\Column;

$chart = new Column([
    'chart' => [
        'width' => 1000,
        'height' => 300,
    ],
    'title' => [
        'text' => 'Values'
    ],
    'dataset' => [
        'series' => ['Product A', 'Product B', 'Product C'],
        'labels' => ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
        'data' => [
            [3296, 4852, 2010, 6004, 5014, 7695],
            [2036, 1816, 687, 1025, 3074, 3651],
            [123, 984, 102, 707, 853, 696],
        ]
    ]
]);

$chart->render();
```

Documentation &amp; examples
============================

[](#documentation--examples)

There's an extensive documentation [here](https://geekalicious.pt/phpopenchart/) with all the available options, methods and datasets.

If you're looking for examples check the [examples](https://geekalicious.pt/phpopenchart/examples.php) page for all the available options or the [/tests/actual](https://github.com/luismarto/phpopenchart/tree/geekalicious-docs/comparison-libchart/actual).

Installation
============

[](#installation)

Require the package in your `composer.json` file and update composer, using the following data:

```
"luismarto/phpopenchart": "3.*"
```

Roadmap
=======

[](#roadmap)

In a forseable future

- Improve demo/examples section (display comparison between libchart and phpopenchart)
- Make this easily integrated with Laravel

License
-------

[](#license)

This library is is based on the original work of [Jean-Marc Trémeaux](http://naku.dohcrew.com/) (check the [original website](https://naku.dohcrew.com/libchart/pages/introduction/)). Also used the fork from [Alexander Stehlik](https://github.com/astehlik).

Phpopenchart is distributed under the terms of the GNU GPL v3. This includes everything in the source code distribution except where otherwise stated.

##### Third Party Content

[](#third-party-content)

The following third party software is distributed with Phpopenchart and is provided under other licenses and/or has source available from other locations.

Files in the fonts directory are distributed under their own licence, which is located under the fonts directory.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~575 days

Recently: every ~746 days

Total

8

Last Release

608d ago

Major Versions

1.5.0 → 2.0.02016-08-29

2.2.0 → 3.0.02017-02-05

PHP version history (2 changes)2.0.0PHP &gt;=5.6

2.2.0PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9350580?v=4)[Luís Cruz](/maintainers/luismarto)[@luismarto](https://github.com/luismarto)

---

Top Contributors

[![naku](https://avatars.githubusercontent.com/u/1281790?v=4)](https://github.com/naku "naku (17 commits)")[![astehlik](https://avatars.githubusercontent.com/u/956513?v=4)](https://github.com/astehlik "astehlik (6 commits)")

---

Tags

chartchartsline chartsbar chartspie charts

### Embed Badge

![Health badge](/badges/luismarto-phpopenchart/health.svg)

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

###  Alternatives

[nnnick/chartjs

Simple HTML5 charts using the canvas element.

67.5k1.2M16](/packages/nnnick-chartjs)[novus/nvd3

A reusable charting library written in d3.js

7.2k214.4k3](/packages/novus-nvd3)[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3762.3M5](/packages/ghunti-highcharts-php)[fx3costa/laravelchartjs

Simple package to facilitate and automate the use of charts in Laravel 5.x using Chartjs v2 library

490483.5k4](/packages/fx3costa-laravelchartjs)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1532.4M7](/packages/amenadiel-jpgraph)[arielmejiadev/larapex-charts

Package to provide easy api to build apex charts on Laravel

305488.7k](/packages/arielmejiadev-larapex-charts)

PHPackages © 2026

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