Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 2.17 KB

README.md

File metadata and controls

76 lines (48 loc) · 2.17 KB

Package for laravel reading the tibber api

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.