PHPackages                             avninc/chartjs-wrapper - 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. [Templating &amp; Views](/categories/templating)
4. /
5. avninc/chartjs-wrapper

ActiveLibrary[Templating &amp; Views](/categories/templating)

avninc/chartjs-wrapper
======================

This allows to generate chart.js charts using PHP fluid interface

0.0.2(9y ago)01.4kMITPHPPHP ^7.0

Since Dec 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/avninc/chartjs-wrapper)[ Packagist](https://packagist.org/packages/avninc/chartjs-wrapper)[ Docs](https://avn.com)[ RSS](/packages/avninc-chartjs-wrapper/feed)WikiDiscussions master Synced 2mo ago

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

Chart.js PHP Fluid Interface
============================

[](#chartjs-php-fluid-interface)

The idea of this package is to allow a fluid interface of generating chart.js JS chart code.

Simple Example

```
$data = new Data(['label' => '# of Votes', 'data' => [12, 19, 3, 5, 2, 3]], ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"]);
$options = new Options(['responsive' => true]);
$chart = new Chart('mycharts', (new Bar), $data, $options);
$code = $chart->render();

// $code will look something like this:

var chartElement = document.getElementById("mycharts");
var chart = new Chart(chartElement, {
    type: "bar",
    data: {"datasets":{"label":"# of Votes","data":[12,19,3,5,2,3]},"labels":["Red","Blue","Yellow","Green","Purple","Orange"],"xLabels":[],"yLabels":[]},
    options: {"responsive":true}
});
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

2

Last Release

3429d ago

### Community

Maintainers

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

---

Top Contributors

[![VinceG](https://avatars.githubusercontent.com/u/195199?v=4)](https://github.com/VinceG "VinceG (5 commits)")

---

Tags

phpchartjschartsOOPphp-charts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avninc-chartjs-wrapper/health.svg)

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

###  Alternatives

[endroid/qr-code-bundle

Endroid QR Code Bundle

32110.6M17](/packages/endroid-qr-code-bundle)[epessine/axis

Draw charts with a simple API on Laravel

265.6k](/packages/epessine-axis)[antoineaugusti/easyphpcharts

A PHP class for chartjs.org charts.

252.8k](/packages/antoineaugusti-easyphpcharts)

PHPackages © 2026

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