jarlskov/laravel-untappd

There is no license information available for the latest version (0.0.2) of this package.

Small library that makes it easy to use the Jarlskov/Untappd API wrapper in your Laravel project.

0.0.2 2022-06-19 09:57 UTC

This package is auto-updated.

Last update: 2024-10-19 15:02:17 UTC


README

This library provides an easy way to include the Jarlskov/Untappd API wrapper in your Laravel project.

Installation

Using composer

Install package

composer require jarlskov/laravel-untappd

Publish config file

php artisan vendor:publish --provider="Jarlskov\LaravelUntappd\Providers\UntappdServiceProvider"

Usage

In the current version of Jarlskov/Untappd you need to provide your own API credentials. You can see in the Untappd API docs how to get your own credentials.

These credentials needs to be added to your Laravel project.

.env

The preferred way to add your credentials is to add them to your .env file by adding two new properties

UNTAPPD_CLIENT_ID=[YOUR_UNTAPPD_CLIENT_ID]

UNTAPPD_CLIENT_SECRET=[YOUR_UNTAPPD_CLIENT_SECRET]

Edit the config file

Alternatively, you can add the credentials directly in the config file.

The config is found in config/untappd.php.