Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codeigniter4/tasks

Task Scheduler for CodeIgnter 4
https://github.com/codeigniter4/tasks

codeigniter4 task-runner task-scheduler tasks

Last synced: about 2 months ago
JSON representation

Task Scheduler for CodeIgnter 4

Awesome Lists containing this project

README

        

# CodeIgniter Tasks

A task scheduler for CodeIgniter 4.

[![PHPUnit](https://github.com/codeigniter4/tasks/actions/workflows/phpunit.yml/badge.svg)](https://github.com/codeigniter4/tasks/actions/workflows/phpunit.yml)
[![PHPStan](https://github.com/codeigniter4/tasks/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codeigniter4/tasks/actions/workflows/phpstan.yml)
[![Deptrac](https://github.com/codeigniter4/tasks/actions/workflows/deptrac.yml/badge.svg)](https://github.com/codeigniter4/tasks/actions/workflows/deptrac.yml)
[![Coverage Status](https://coveralls.io/repos/github/codeigniter4/tasks/badge.svg?branch=develop)](https://coveralls.io/github/codeigniter4/tasks?branch=develop)

![PHP](https://img.shields.io/badge/PHP-%5E7.4-blue)
![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.1-blue)
![License](https://img.shields.io/badge/License-MIT-blue)

## 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
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](CONTRIBUTING.md) file for details.