PHPackages                             bearframework/tasks-addon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bearframework/tasks-addon

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bearframework/tasks-addon
=========================

Tasks addon for Bear Framework

v1.6.0(5mo ago)02.1k5MITPHPPHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

Since Sep 7Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/bearframework/tasks-addon)[ Packagist](https://packagist.org/packages/bearframework/tasks-addon)[ Docs](https://github.com/bearframework/tasks-addon)[ RSS](/packages/bearframework-tasks-addon/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (43)Used By (5)

Tasks (addon for Bear Framework)
================================

[](#tasks-addon-for-bear-framework)

A lightweight task scheduling and execution addon for Bear Framework. It lets you register task handlers, enqueue work items with scheduling and priority options, and process them via a runnable worker.

Snippets
--------

[](#snippets)

### Define task (register handler)

[](#define-task-register-handler)

```
$app->tasks
    ->define('definition-id', function ($value): void {
        // code
    })
```

### Add task

[](#add-task)

```
$app->tasks
    ->add('definition-id', 'example-value', [
        'id' => 'task-id', // optional
        'listID' => '', // empty value for the default list
        'startTime' => time() + 120, // start in 2 minutes
        'priority' => 3, // 1 - lowest, 5 - highest
        'ignoreIfExists' => true, // will check the id only
    ]);
```

### Run tasks

[](#run-tasks)

```
$app->tasks
    ->addEventListener('runTask', function (\BearFramework\Tasks\RunTaskEventDetails $eventDetails) use ($app) {
        $app->logs->log('run-task', $eventDetails->definitionID);
    })
    ->run([
        'listID' => '',
        'maxExecutionTime' => 30
    ]);
```

Contributing
------------

[](#contributing)

Contributions and bug reports are welcome. Open issues or submit pull requests to the repository.

License
-------

[](#license)

This addon is free to use under the MIT license. See the LICENSE file for details.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance71

Regular maintenance activity

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~73 days

Recently: every ~191 days

Total

42

Last Release

163d ago

Major Versions

v0.4.15 → v1.0.02021-01-02

PHP version history (6 changes)v0.1.0PHP &gt;=7.1

v1.0.1PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*

v1.1.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*

v1.2.0PHP 7.1.\*|7.2.\*|7.3.\*|7.4.\*|8.0.\*|8.1.\*|8.2.\*|8.3.\*

v1.5.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*

v1.6.0PHP 8.0.\*|8.1.\*|8.2.\*|8.3.\*|8.4.\*|8.5.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/c06ddc5a1d8a94abf93b332db93ae6d03cbe97c1f2a4acf18450c7fbb25a4316?d=identicon)[ivopetkov](/maintainers/ivopetkov)

---

Top Contributors

[![ivopetkov](https://avatars.githubusercontent.com/u/13205385?v=4)](https://github.com/ivopetkov "ivopetkov (73 commits)")

---

Tags

schedulerTasksaddonbear framework

### Embed Badge

![Health badge](/badges/bearframework-tasks-addon/health.svg)

```
[![Health](https://phpackages.com/badges/bearframework-tasks-addon/health.svg)](https://phpackages.com/packages/bearframework-tasks-addon)
```

###  Alternatives

[peppeocchi/php-cron-scheduler

PHP Cron Job Scheduler

8282.5M34](/packages/peppeocchi-php-cron-scheduler)[symfony/scheduler

Provides scheduling through Symfony Messenger

8910.8M52](/packages/symfony-scheduler)[kartik-v/yii2-field-range

Easily manage Yii 2 ActiveField ranges (from/to) with Bootstrap 3 addons markup and more

232.1M26](/packages/kartik-v-yii2-field-range)[rewieer/taskschedulerbundle

Task Scheduler with CRON for Symfony

63242.1k](/packages/rewieer-taskschedulerbundle)[synolia/sylius-scheduler-command-plugin

Scheduler Command Plugin.

34361.5k](/packages/synolia-sylius-scheduler-command-plugin)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
