-
-
Notifications
You must be signed in to change notification settings - Fork 958
Install on Laravel
Marco Boretto edited this page Feb 3, 2016
·
4 revisions
First install Laravel environment.
Add to your comporser.json under require section: "longman/telegram-bot": "*"
You should obtain something like:
{
"require": {
"longman/telegram-bot": "*"
}
}
then run composer update
(only update a specific package):
composer update longman/telegram-bot
Add the namespace for the bot class under "autoload" "psr-4" in composer.json:
"Longman\\TelegramBot\\": "vendor/longman/telegram-bot/src"
You should obtain something like this:
"autoload": {
"psr-4": {
"App\\": "app/",
"Longman\\TelegramBot\\": "vendor/longman/telegram-bot/src"
}
}
then run:
composer dump-autoload
Done! Now you can use Bot classes inside Laravel and vice versa.