Download the PHP package sazanof/php-telegram-bot-laravel without Composer
On this page you can find all versions of the php package sazanof/php-telegram-bot-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sazanof/php-telegram-bot-laravel
More information about sazanof/php-telegram-bot-laravel
Files in sazanof/php-telegram-bot-laravel
Package php-telegram-bot-laravel
Short Description Package to integrate PHP Telegram Bot library in Laravel 8.x, 9.x
License MIT
Homepage https://github.com/sazanof/php-telegram-bot-laravel
Informations about the package php-telegram-bot-laravel
Telegram Bot Package for Laravel 6.x, 7.x, and 8.x
This package helps easily integrate PHP Telegram Bot library in Laravel application.
Table of Contents
- Installation
- Usage
- TODO
- Troubleshooting
- Contributing
- License
- Credits
Installation
Install this package through Composer.
Edit your project's composer.json
file to require php-telegram-bot/laravel
Create composer.json file:
And run composer update
Or run a command in your command line:
composer require php-telegram-bot/laravel
Copy the package config and migrations to your project with the publish command:
php artisan vendor:publish --provider="PhpTelegramBot\Laravel\ServiceProvider"
After run migration command
php artisan migrate
In the config you have to specify Telegram API KEY
Usage
You can inject PhpTelegramBot\Laravel\PhpTelegramBotContract
in anywhere and use bot instance
For example:
More details about usage you can see on the PHP Telegram Bot docs: https://github.com/php-telegram-bot/core#instructions
TODO
write more tests
Troubleshooting
If you like living on the edge, please report any bugs you find on the php-telegram-bot/laravel issues page.
Contributing
Pull requests are welcome. See CONTRIBUTING.md for information.
License
Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.
Credits
Full credit list in CREDITS
All versions of php-telegram-bot-laravel with dependencies
ext-json Version *
illuminate/database Version ^8 || ^9
illuminate/support Version ^8 || ^9
longman/telegram-bot Version ^0.75