Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lartie/laravel-botan
Botan for Laravel
https://github.com/lartie/laravel-botan
botan composer laravel laravel-package metrika yandex-metrika
Last synced: about 2 months ago
JSON representation
Botan for Laravel
- Host: GitHub
- URL: https://github.com/lartie/laravel-botan
- Owner: lartie
- License: mit
- Created: 2016-11-22T15:37:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T21:06:54.000Z (about 8 years ago)
- Last Synced: 2024-11-23T19:20:19.291Z (2 months ago)
- Topics: botan, composer, laravel, laravel-package, metrika, yandex-metrika
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaravelBotan
Fork: https://github.com/botanio/sdk
[![Latest Stable Version](https://poser.pugx.org/lartie/laravel-botan/v/stable)](https://packagist.org/packages/lartie/laravel-botan)
[![Total Downloads](https://poser.pugx.org/lartie/laravel-botan/downloads)](https://packagist.org/packages/lartie/laravel-botan)
[![Latest Unstable Version](https://poser.pugx.org/lartie/laravel-botan/v/unstable)](https://packagist.org/packages/lartie/laravel-botan)
[![License](https://poser.pugx.org/lartie/laravel-botan/license)](https://packagist.org/packages/lartie/laravel-botan)
[![composer.lock](https://poser.pugx.org/lartie/laravel-botan/composerlock)](https://packagist.org/packages/lartie/laravel-botan)- [Installation](#installation)
- [Composer](#composer)
- [Configuration](#configuration)
- [Service Provider](#service-provider)
- [Usage](#usage)
- [License](#license)## Installation
### Composer
```bash
composer require "lartie/laravel-botan:^1.0.0"
```### Configuration
BOTAN_TOKEN=YOUR_BOT_TOKEN
### Service Provider
You must install this service provider.
```php
// 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.
```php
// 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](LICENSE.md) for more information.