arnebr/laravel-tibber

Package for laravel reading the tibber api

v1.0.5 2023-02-20 10:40 UTC

This package is auto-updated.

Last update: 2024-11-08 04:44:07 UTC


README

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.