icydata / heatmap
Generate heatmaps with custom backgrounds
v1.0.0
2018-07-09 22:59 UTC
Requires
- php: 7.*
- ext-gd: *
This package is not auto-updated.
Last update: 2024-10-09 02:06:56 UTC
README
Installation
composer require icydata/heatmap
Usage
use IcyData\Heatmap;
$heatmap = new Heatmap();
$heatmap->addPoint(10, 10);
...
$heatmap->addPoint(30, 30);
$heatmap->save('/tmp/heatmap.png');
Use a custom background
$heatmap = new Heatmap([
'backgroundImg' => '/path/to/file.png'
]);
License
Please review LICENSE.md