A package for laravel reading the Tibber API.
You can install the package via composer:
composer require arnebr/laravel-tibber
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravel-tibber-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="laravel-tibber-config"
This is the contents of the published config file:
return [
'api_url'=>'https://api.tibber.com/v1-beta/gql',
'token'=>env('TIBBER_TOKEN','5K4MVS-OjfWhK_4yrjOlFe1F6kJXPVf7eQYggo8ebAE'),
'homeId'=>env('TIBBER_HOMEID',null)
];
$tibber = new Arnebr\Tibber();
var_dump( $tibber->viewer());
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.