PHPackages                             molbal/smolchart - 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. molbal/smolchart

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

molbal/smolchart
================

Bite sized charting library, primarily rendered as text

v0.1.7(9mo ago)073[3 PRs](https://github.com/molbal/smolchart/pulls)MITPHPPHP &gt;=8.2CI passing

Since Sep 11Pushed 1w agoCompare

[ Source](https://github.com/molbal/smolchart)[ Packagist](https://packagist.org/packages/molbal/smolchart)[ Docs](https://github.com/molbal/smolchart)[ GitHub Sponsors](https://github.com/molbal)[ RSS](/packages/molbal-smolchart/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (4)Versions (12)Used By (0)

Smolchart
=========

[](#smolchart)

[![Latest Version on Packagist](https://camo.githubusercontent.com/948041fec2e06061858f4ac190b33f5ce7b0a2e2489c1283e33c5e73a0cab495/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6c62616c2f736d6f6c63686172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/molbal/smolchart)[![Tests](https://camo.githubusercontent.com/e527edfedb69dff8b36f7a418e4540e84780285d49503892735c0c8ea25239b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6c62616c2f736d6f6c63686172742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/molbal/smolchart/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/50cecfe87bd4e760d108fd6d8e957dd09f7613e5dc8c4bb0004ed108ffc4094c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6c62616c2f736d6f6c63686172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/molbal/smolchart)

Bite-sized charting library that focuses on text (ASCII) rendering, with an HTML renderer for web usage. Ideal for CLIs, logs, and minimalist dashboards.

Note: The library is usable today; the examples below reflect the current API and behavior.

- Documentation: see the docs/ directory or start at [docs/README.md](docs/README.md)
- License: MIT

Features
--------

[](#features)

- Data input: PHP arrays and Illuminate Collections
- Chart types: ProgressBar, BarChart, LineChart
- Outputs: ASCII (terminal), HTML (browser)
- Elements: Axes, Labels, Annotations
- Fluent builder-style configuration

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

[](#installation)

```
composer require molbal/smolchart
```

Requires PHP ^8.2.

Quick Examples
--------------

[](#quick-examples)

Below are copy-pastable examples that reflect the current API.

### Progress Bar (ASCII)

[](#progress-bar-ascii)

```
