PHPackages                             jasonroman/flot - 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. jasonroman/flot

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

jasonroman/flot
===============

Jason Roman's PHP Flot Class

1.0.1(10y ago)21.4k1MITPHPPHP &gt;=5.3.0

Since Apr 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jasonroman/flot)[ Packagist](https://packagist.org/packages/jasonroman/flot)[ Docs](https://github.com/jasonroman/flot)[ RSS](/packages/jasonroman-flot/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (1)

Jason Roman's PHP Flot Class
============================

[](#jason-romans-php-flot-class)

[![Build Status](https://camo.githubusercontent.com/cdb7e3424013f1c21b14cd5f326838b2f28b7e7e4e2273fcd69fc8cdd5b96754/68747470733a2f2f7472617669732d63692e6f72672f6a61736f6e726f6d616e2f666c6f742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jasonroman/flot)

This is a class that transforms PHP arrays of series data into a JSON format that Flot can understand. It supports line/bar charts, pie charts, horizontal/vertical orientation, and time series data. It also supports single or multiple series.

To load as a service in a Symfony bundle, see my [jasonroman/flot-bundle](https://github.com/jasonroman/flot-bundle) package.

Usage
-----

[](#usage)

```
// convert to Flot JSON data from PHP arrays
use JasonRoman\Flot\Flot;

$flot = new Flot;

$flotData = $flot->convert($data);
$flotData = $flot->convert($data, 'horizontal');
$flotData = $flot->convert($data, 'vertical', $datetime = true);
$flotData = $flot->convert($pieData);
```

See the comments in the class for more examples of the various forms of array $data that can be passed to the convert() function.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24f7a4427ede9312bf62430f7a9c2157283b3e4ddfb12f26131377348b75c29f?d=identicon)[jasonroman](/maintainers/jasonroman)

---

Top Contributors

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

---

Tags

flot

### Embed Badge

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

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

###  Alternatives

[phpmentors/workflower

A BPMN 2.0 workflow engine for PHP

70652.9k4](/packages/phpmentors-workflower)[tekill/env-diff

Check the difference between env files and actualize each other

2496.4k1](/packages/tekill-env-diff)

PHPackages © 2026

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