PHPackages                             app-zap/phpframework-scheduler - 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. app-zap/phpframework-scheduler

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

app-zap/phpframework-scheduler
==============================

020PHP

Since Jan 16Pushed 11y ago2 watchersCompare

[ Source](https://github.com/app-zap/PHPFramework-Scheduler)[ Packagist](https://packagist.org/packages/app-zap/phpframework-scheduler)[ RSS](/packages/app-zap-phpframework-scheduler/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHPFramework Plugin: Scheduler
==============================

[](#phpframework-plugin-scheduler)

This package is a plugin for [PHPFramework](https://github.com/app-zap/PHPFramework).

When writing applications you often want to schedule tasks for later or for regular execution. Instead of configuring a cronjob for each task, you can use the scheduler as a proxy.

Installation
------------

[](#installation)

Include this package as requirement in your `composer.json`. For example:

```
{
  ...
  "require": {
    ...
    "app-zap/phpframework-scheduler": "dev-develop"
  }
}

```

This plugin requires a certain SQL structure. You have to include it yourself, because PHPFramework [isn't capable to load plugin SQL](https://github.com/app-zap/PHPFramework/issues/51) yet:

```
CREATE TABLE `schedulertask` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `classname` varchar(255) NOT NULL DEFAULT '',
  `last_execution` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `classname` (`classname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

```

*Hint: If you're using the PHPFramework's database migrator, copy the above statement to a `.sql` file to have it applied automatically when needed.*

Setup a cronjob like this:

```
*/5 * * * * php path/to/your/projects/index.php invokeScheduler

```

Configuration
-------------

[](#configuration)

You can set up tasks in your `settings.ini`:

```
[phpframework-scheduler]
tasks.MyVendor\MyApp\Task\DailyStatisticsMail = "0 18 * * *"

```

This calls the `DailyStatisticsMail` class daily at 6pm. The class has to implement the `\AppZap\PHPFrameworkScheduler\TaskExecutorInterface`, which means it has to implement the `execute()`method.

For debugging purposes you can enable to start the scheduler via GET request from your browser:

```
[phpframework-scheduler]
enable_get_request = true

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/886face3e57e668db2bf95d62325f423baf7e9d8949a9e4c84d3a0e6c3891920?d=identicon)[smichaelsen](/maintainers/smichaelsen)

---

Top Contributors

[![smichaelsen](https://avatars.githubusercontent.com/u/912435?v=4)](https://github.com/smichaelsen "smichaelsen (11 commits)")

### Embed Badge

![Health badge](/badges/app-zap-phpframework-scheduler/health.svg)

```
[![Health](https://phpackages.com/badges/app-zap-phpframework-scheduler/health.svg)](https://phpackages.com/packages/app-zap-phpframework-scheduler)
```

PHPackages © 2026

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