Skip to content

Commit

Permalink
Update docs, remove self-register
Browse files Browse the repository at this point in the history
  • Loading branch information
punyflash committed Aug 15, 2023
1 parent 05c988c commit 3db0914
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
10 changes: 0 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@
"test": "phpunit",
"testdox": "phpunit --testdox"
},
"extra": {
"laravel": {
"providers": [
"WeStacks\\TeleBot\\Laravel\\Providers\\TeleBotServiceProvider"
],
"aliases": {
"TeleBot": "WeStacks\\TeleBot\\Laravel\\TeleBot"
}
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true
Expand Down
17 changes: 16 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Requirements

- PHP 7.2+
- PHP 8.0+
- Composer
- Telegram bot token ([what is it?](https://core.telegram.org/bots/api#authorizing-your-bot))

Expand All @@ -12,6 +12,21 @@ You can install the package via composer:
composer require westacks/telebot
```

For laravel, you should install package with adapter

```bash
composer require westacks/telebot-laravel
```

## Migrating from 2.x

For standalone project you can just upgrade package without any breaking changes. But in case you are using Laravel, to migrate the package to newest version you need update your `composer.json`:

```json
// "westacks/telebot": "^2.0",
"westacks/telebot-laravel": "^3.0",
```

## Laravel

Only Laravel version 5.5 or greater supported by the library!
Expand Down

0 comments on commit 3db0914

Please sign in to comment.