PHPackages                             rabbl/heatmap - 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. [Image &amp; Media](/categories/media)
4. /
5. rabbl/heatmap

ActiveLibrary[Image &amp; Media](/categories/media)

rabbl/heatmap
=============

A library to create colorful png-images from 2D-Grid arrays

v1.1.1(9y ago)1611MITPHPPHP &gt;=7.1.0

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rabbl/heatMap)[ Packagist](https://packagist.org/packages/rabbl/heatmap)[ RSS](/packages/rabbl-heatmap/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

HeatMap
=======

[](#heatmap)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/bc089b45a50714f7ddac3ee3abd16d39c765447e4147c6749b283fc0f133b76c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726162626c2f686561744d61702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rabbl/heatMap/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/55a731418d7c86a4306529cf7ed2e04c56e086ee76ffcde95356c9bb7544f751/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726162626c2f686561744d61702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rabbl/heatMap/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c15a4a8ad53f9dd129779190e164a4d3011857d9c194899107ec00615bb51f9a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726162626c2f686561744d61702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rabbl/heatMap/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/9f36df3e0a4ebd57a421b0b3c5078a2d903c60a9727ac51df4b23a74c02a91c8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38373861376338622d663733322d343364622d386463382d6538653830376136383065342f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/878a7c8b-f732-43db-8dc8-e8e807a680e4)

Features
--------

[](#features)

This library generates pixel images (png) from 2D-Grid values. You can setup a custom color spectrum for the interpolation.

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

[](#installation)

Composer is used for installation. Add the following lines to your `composer.json` file:

```
"require": {
    "rabbl/heatmap": "^1.1"
}

```

Or install it on the command line: `composer require rabbl/heatmap`

Usage
-----

[](#usage)

```
$heatMap = new HeatMap();
$heatMap->setData(array(
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9]
));
$heatMap->setSpectrum('blue', 'green', 'yellow', 'red');
$fileName = $heatMap->createWithAbsoluteLimits($data, 0, 9);
```

Returns the temporary filename of the generated image.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3303d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

imagegradientheatmap

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

5520.3M9](/packages/intervention-gif)

PHPackages © 2026

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