version-checker / laravel-version-checker
A Laravel package to check for framework updates and notify via Telegram
v1.1.2
2025-05-07 07:59 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^9.0|^10.0|^11.0
- irazasyed/telegram-bot-sdk: ^3.0
README
A Laravel package to check for new Laravel framework releases, verify PHP version and extension compatibility, and notify via Telegram. It also ensures the server’s PHP extensions are sufficient for the project’s Laravel version.
Installation
-
Install the package via Composer:
composer require version-checker/laravel-version-checker
-
Publish the configuration file:
php artisan vendor:publish --tag=config
-
Update your
.env
file:VERSION_CHECKER_TELEGRAM_CHAT_ID=your_chat_id VERSION_CHECKER_GITHUB_TOKEN=your_github_token VERSION_CHECKER_SCHEDULE_ENABLED=true VERSION_CHECKER_SCHEDULE_CRON="0 0 * * *"
Setup
Telegram Bot
- Create a bot via @BotFather and get the token.
- Start a chat with the bot and get the chat ID using
https://api.telegram.org/bot<token>/getUpdates
.
GitHub Token
- Create a personal access token with
repo
scope in GitHub Settings.
Run the Command
php artisan laravel:check-version
The command checks:
- The latest Laravel release via GitHub API.
- The project’s installed Laravel version (from
composer.json
). - PHP version compatibility with the latest Laravel version.
- Whether the server’s PHP extensions are sufficient (all required extensions are enabled).
- Sends a Telegram notification with a detailed compatibility report, including installation suggestions for missing extensions.
The command is scheduled to run daily by default (configurable via VERSION_CHECKER_SCHEDULE_CRON
).
License
MIT