arnebr / laravel-tibber
Package for laravel reading the tibber api
v1.0.5
2023-02-20 10:40 UTC
Requires
- php: ^8.0||^8.1
- carbon-cli/carbon-cli: ^1.2
- guzzlehttp/guzzle: ^7.5
- illuminate/contracts: ^9.0||^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0||^7.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0||^8.0
- pestphp/pest: ^1.21||^2.0
- pestphp/pest-plugin-laravel: ^1.1||^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: 9.6.0 || ^10.0.7
README
A package for laravel reading the Tibber API.
Installation
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) ];
Usage
$tibber = new Arnebr\Tibber(); var_dump( $tibber->viewer());
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.