Download the PHP package fnematov/laravel-scheduler-attribute without Composer
On this page you can find all versions of the php package fnematov/laravel-scheduler-attribute. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-scheduler-attribute
Laravel Scheduler Attribute
The Laravel Scheduler Attribute package revolutionizes the way you schedule tasks in your Laravel applications. Utilizing the power of PHP 8 attributes, this package allows developers to declaratively schedule tasks with minimal setup, directly within class methods, enhancing the maintainability and clarity of your codebase.
Features
- Declarative Scheduling: Easily schedule tasks within your service classes using PHP 8 attributes.
- Flexible Timing: Supports both cron expressions and Laravel's built-in scheduling methods for comprehensive control over task timing.
- Clean Architecture: Keep your scheduling logic close to the related business logic for better cohesion.
- Automatic Discovery: Automatically discovers and registers scheduled tasks, simplifying the scheduling setup process.
Installation
Install the package via Composer:
Usage
To schedule a task, simply add the #[ArtisanScheduler] attribute to the method you want to schedule. You can then specify the timing of the task using a cron expression or one of Laravel's built-in scheduling methods.
This example schedules the generateDailyReport method to run daily.
Contributing
No additional configuration is required to use this package.
Contributing
Contributions are welcome and will be fully credited. Please submit pull requests to the GitHub repository.
Support
If you encounter any problems, please submit an issue on our GitHub page.
License
The Laravel Scheduler Attribute is open-sourced software licensed under the MIT LICENCE.
All versions of laravel-scheduler-attribute with dependencies
illuminate/console Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0
symfony/finder Version ^5.0|^6.0|^7.0