GitPedia

Tasks

Task Scheduler for CodeIgnter 4

From codeigniter4·Updated June 15, 2026·View on GitHub·

**tasks** is a Task Scheduler for CodeIgnter 4 The project is written primarily in PHP, distributed under the MIT License license, first published in 2020. Key topics include: codeigniter4, task-runner, task-scheduler, tasks.

Latest release: v1.0.1
March 30, 2026View Changelog →

CodeIgniter Tasks

A task scheduler for CodeIgniter 4.

PHPUnit
PHPStan
Deptrac
Coverage Status

PHP
CodeIgniter
License

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:

php
// 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.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from codeigniter4/tasks via the GitHub API.Last fetched: 6/21/2026