PHPackages                             christopherarter/cool-charts - 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. christopherarter/cool-charts

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

christopherarter/cool-charts
============================

This is the cool-charts project.

0.1.0(2y ago)551[1 PRs](https://github.com/christopherarter/CoolCharts/pulls)MITPHPPHP &gt;=8.1

Since Jul 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/christopherarter/CoolCharts)[ Packagist](https://packagist.org/packages/christopherarter/cool-charts)[ RSS](/packages/christopherarter-cool-charts/feed)WikiDiscussions main Synced yesterday

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

Hey, cool charts.
=================

[](#hey-cool-charts)

[![Tests](https://github.com/christopherarter/coolcharts/actions/workflows/ci.yml/badge.svg)](https://github.com/christopherarter/coolcharts/actions/workflows/ci.yml/badge.svg)

This PHP package provides a flexible and convenient way to transform your data into different chart formats. It provides a fluent interface to build charts and supports different chart libraries, such as ChartJS and HighCharts.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install this package. Run the following command:

`composer require christopherarter/cool-charts`

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

First, you need to use the Builder class to construct your chart.

```
use ChristopherArter\CoolCharts\Chart;

$chart = Chart::make()
               ->pie()
               ->title('My Cool Chart')
               ->data([1, 2, 3, 4, 5])
               ->labels(['One', 'Two', 'Three', 'Four', 'Five'])
               ->useChartJs()
               ->build();
```

### Builder Methods

[](#builder-methods)

The `Builder` class provides a fluent interface to build your charts:

- `pie()`: Use this method to specify that you want to create a pie chart.
- `bar()`: Use this method to specify that you want to create a bar chart.
- `line()`: Use this method to specify that you want to create a line chart.
- `title(string $title)`: Use this method to set the title of the chart.
- `data(array $data)`: Use this method to set the data for the chart. The data should be an array of numbers.
- `labels(array $labels)`: Use this method to set the labels for the chart data. The labels should be an array of strings.
- `useHighCharts()`: Use this method to specify that you want to use the HighCharts library to render the chart.
- `useChartJs()`: Use this method to specify that you want to use the ChartJs library to render the chart.
- `build()`: Finally, use this method to build the chart. This method returns an array representing the chart.

### Contributing

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

### License

[](#license)

MIT

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1069d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12786153?v=4)[Chris Arter](/maintainers/christopherarter)[@christopherarter](https://github.com/christopherarter)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/christopherarter-cool-charts/health.svg)

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

PHPackages © 2026

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