Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murat-cileli/update-notifier
Composer update notifier for Laravel.
https://github.com/murat-cileli/update-notifier
Last synced: 4 days ago
JSON representation
Composer update notifier for Laravel.
- Host: GitHub
- URL: https://github.com/murat-cileli/update-notifier
- Owner: murat-cileli
- Created: 2023-11-28T13:46:14.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-29T09:11:52.000Z (12 months ago)
- Last Synced: 2024-03-30T17:01:49.486Z (8 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Composer Update Notifier for Laravel
Configurable Laravel package that checks Composer updates and notify via e-mail if any update exist.
#### Installation
`composer require murat-cileli/update-notifier`#### Configuration with .env file
`UPDATE_NOTIFIER_COMPOSER_PATH`: Composer binary path. Default: `composer`
`UPDATE_NOTIFIER_CHECK_VERSION`: Allowed values are `all`, `major`, `minor` and `patch`. Default: `all`.
`UPDATE_NOTIFIER_DIRECT_PACKAGES`: Checks direct dependencies only if set `true`. Defult: `true`
`UPDATE_NOTIFIER_LOCKED_PACKAGES`: Checks locked packages only if set `true`. Default: `true`.
`UPDATE_NOTIFIER_DEVELOPMENT_PACKAGES`: Checks development packages if set `true`. Defalut: `false`.
`UPDATE_NOTIFIER_MAIL_TO`: Mail recipient(s) for e-mail notification. Multiple mails can be seperated with comma. Eg. `[email protected], [email protected]`
#### Configuration with config file
Config file to be published first using;
`php artisan vendor:publish --tag update-notifier`
then parameters can be edited in `config/update_notifier.php`.
#### Usage
From you project root:
`php artisan update-notifier:notify`
Notifications can be scheduled with cron. For example, this checks updates every morning at 09:00
`0 9 * * * cd /your/project && php artisan update-notifier:notify`