PHP code example of blumilksoftware / laravel-heatmap
1. Go to this page and download the library: Download blumilksoftware/laravel-heatmap library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blumilksoftware / laravel-heatmap example snippets
use Blumilk\LaravelHeatmap\LaravelHeatmapBuilder;
use App\Models\YourModel;
$data = YourModel::all(); // Assuming YourModel has a 'created_at' field
$heatmapBuilder = new LaravelHeatmapBuilder();
$heatmap = $heatmapBuilder->buildFromCollection($data, 'created_at');