Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

Update Notifier

### 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`