toolstud-io / nowtricity
PHP Library for Nowtricity API
1.0.0
2023-10-28 19:31 UTC
Requires
- php: ^8.1
- ext-curl: *
Requires (Dev)
- laravel/pint: ^1.13
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-10-28 21:41:12 UTC
README
PHP Library for Nowtricity API - based on https://www.nowtricity.com/emissions-api/
Installation
You can install the package via composer:
composer require toolstud-io/nowtricity
Usage
$obj = new ToolstudIo\Nowtricity\Nowtricity($apiKey); $countries = $obj->countries(); $current = $obj->current('belgium'); $last24 = $obj->last24('belgium'); $year = $obj->year('belgium', '2022');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email author_email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.