paneidos / laravel-crontab
Generate a crontab from your schedule
v0.1.0
2018-10-12 18:04 UTC
Requires
- php: >=7
- dragonmantank/cron-expression: ^2.0
- illuminate/console: ^5.6,<5.8
- illuminate/container: ^5.6,<5.8
- illuminate/support: ^5.6,<5.8
- symfony/process: ^4.1
Requires (Dev)
- phpunit/phpunit: ~7.0
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-11-14 23:01:54 UTC
README
Generate a crontab from your Laravel schedule.
Why would I need this?
Laravel's scheduler works by adding a cronjob which runs every minute.
Cron daemons can do their work way more efficiently if you let them schedule the jobs.
This package adds a command (schedule:crontab
) to generate a crontab based on the schedule you defined.
Compatibility
Currently works with Laravel 5.6 and 5.7, as well as Laravel Zero 5.6 and 5.7.
Development
# Install dependencies
composer install
# Run tests
composer test
# Run tests & report coverage
composer test -- --coverage-test
Contributing
Send a pull request, ensure you've got full test coverage.
Planned features
- Support for
withoutOverlapping()
- Support for
runsInMaintenanceMode()
License
Laravel Crontab is licensed under the MIT License.