Skip to content

lartie/Laravel-Botan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LaravelBotan

Fork: https://github.com/botanio/sdk

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Installation

Composer

composer require "lartie/laravel-botan:^1.0.0"

Configuration

BOTAN_TOKEN=YOUR_BOT_TOKEN

Service Provider

You must install this service provider.

// config/app.php
'providers' => [
    ...
    LArtie\LaravelBotan\LaravelBotanServiceProvider::class,
    ...
];

This package also comes with a facade, which provides an easy way to call the the class.

// config/app.php
'aliases' => [
    ...
    'Botan' => LArtie\LaravelBotan\Facades\Botan::class,
    ...
];

Usage

Botan::track($message, 'Message');

Or

$result = Botan::shortenUrl($url, $userId);

License

The MIT License (MIT). Please see License File for more information.