codeigniter4/tasks
Task Scheduler for CodeIgniter 4
Maintainers
v1.0.1
2026-03-30 05:38 UTC
Requires
- php: ^8.2
- ext-json: *
- codeigniter4/queue: ^1.0
- codeigniter4/settings: ^2.0
Requires (Dev)
- codeigniter4/devkit: ^1.3
- codeigniter4/framework: ^4.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 30a329a040f86e49d723b7c2eaa64836a703eb55
- Lonnie Ezell <lonnieje.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-19 11:42:15 UTC
README
A task scheduler for CodeIgniter 4.
👁 PHPUnit
👁 PHPStan
👁 Deptrac
👁 Coverage Status
Installation
Install via Composer:
composer require codeigniter4/tasks
Migrate the database:
for Unix
php spark migrate -n CodeIgniter\\Settings
for Windows
php spark migrate -n CodeIgniter\Settings
Configuration
Publish the config file:
php spark tasks:publish
Defining tasks
Define your tasks in the init() method:
// app/Config/Tasks.php <?php namespace Config; use CodeIgniter\Tasks\Config\Tasks as BaseTasks; use CodeIgniter\Tasks\Scheduler; class Tasks extends BaseTasks { /** * Register any tasks within this method for the application. * * @param Scheduler $schedule */ public function init(Scheduler $schedule) { $schedule->command('demo:refresh --all')->mondays('11:00 pm'); } }
Docs
Read the full documentation: https://tasks.codeigniter.com
Contributing
We accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome. See the CONTRIBUTING.md file for details.
