lartie/laravel-botan
LaravelBotan
Fork: https://github.com/botanio/sdk
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.
Related Packages
emotality/laravel-telegram-logger
Laravel package to report exceptions to a Telegram chat, group or channel.
11,901
2
swayok/laravel-extended-errors
Extended laravel debug exceptions display (more info) and monolog's html emails...
1,372
1
ricardofontanelli/laravel-telegram
A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.
3,653
10