PHPackages                             libchart/libchart - 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. libchart/libchart

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

libchart/libchart
=================

Simple PHP chart drawing library

v1.6.0(1y ago)384.8k↑25.7%91GPL-3.0-onlyPHPPHP ^7.0 || ^8.0CI failing

Since Oct 19Pushed 1y agoCompare

[ Source](https://github.com/astehlik/libchart)[ Packagist](https://packagist.org/packages/libchart/libchart)[ Docs](http://naku.dohcrew.com/libchart/pages/introduction/)[ RSS](/packages/libchart-libchart/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (1)

Composer compatible fork of Libchart
====================================

[](#composer-compatible-fork-of-libchart)

This fork was originally created to be able to use libchart via Composer.

It has not been maintained for quite some time and the original project is discontinued.

I will accept pull requests but it might take some time.

Old version!
------------

[](#old-version)

There have been some changes to the original project at  since this fork was created!

These have not been merged yet. Feel free to create a pull request.

Project discontinued
--------------------

[](#project-discontinued)

Please be advised that the original author has discontinued this project! See

Libchart - Simple PHP chart drawing library
===========================================

[](#libchart---simple-php-chart-drawing-library)

Libchart is a free chart creation PHP library, that is easy to use.

Features
--------

[](#features)

```
* Bar charts (horizontal or vertical).
* Pie charts.
* Line charts.
* Compatibility with PHP 5.

```

Dependencies
------------

[](#dependencies)

```
* PHP 5, compiled with:
* GD 2+
* FreeType 2+

```

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

[](#installation)

In order to use Libchart, unpack the archive in you project directory and include libchart.php. Please have a look at the demo files for more information.

You need to chmod 777 the "generated" directory in order to generate the demos.

There is also a tutorial available at the project homepage.

Contact info
------------

[](#contact-info)

WWW:

MAIL: jm.tremeaux at gmail dot com

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance45

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

424d ago

PHP version history (2 changes)v1.4.2PHP ^7.0

v1.6.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/956513?v=4)[Alexander Stehlik](/maintainers/astehlik)[@astehlik](https://github.com/astehlik)

---

Top Contributors

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

---

Tags

chartchartsline chartsbar chartspie charts

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
