PHP Library for Nowtricity API - based on https://www.nowtricity.com/emissions-api/
You can install the package via composer:
composer require toolstud-io/nowtricity
$obj = new ToolstudIo\Nowtricity\Nowtricity($apiKey);
$countries = $obj->countries();
$current = $obj->current('belgium');
$last24 = $obj->last24('belgium');
$year = $obj->year('belgium', '2022');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.