lartie / Laravel-Botan by lartie

Laravel Botan
177
2
2
Package Data
Maintainer Username: lartie
Maintainer Contact: log.wil.log@gmail.com (Artie)
Package Create Date: 2016-11-22
Package Last Update: 2016-11-22
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 15:01:58
Package Statistics
Total Downloads: 177
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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.