PHPackages                             yiv-dev/wp-scheduller - 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. yiv-dev/wp-scheduller

ActiveWordpress-helper[Utility &amp; Helpers](/categories/utility)

yiv-dev/wp-scheduller
=====================

helps add and remove the wpcron tasks

0236PHP

Since Mar 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yiv-dev/wpScheduller)[ Packagist](https://packagist.org/packages/yiv-dev/wp-scheduller)[ RSS](/packages/yiv-dev-wp-scheduller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wpScheduller
============

[](#wpscheduller)

add the task
------------

[](#add-the-task)

```
use YIVDEV\WPSCHEDULLER\wpScheduller;

$scheduler = new wpScheduller('test_task');
$scheduler
    ->setPeriod(10800)
    ->setTaskClass('Path\\to\\Your\\Task\\Class')
    ->setTaskClassParameters(['id' => 999]);

$scheduler->set_cron_task();

```

#### You can create your task Clas:

[](#you-can-create-your-task-clas)

```
use YIVDEV\WPSCHEDULLER\TaskInterface;

class TestTask implements TaskInterface
{

    private $id;

    public function run(): void
    {
        try {
            $file = \uniqid() . '_' . $this->id . '_test.txt';
            $content = 'TEST CONTENT';
            file_put_contents($file, $content);
        } catch (\Exception $e) {
            throw $e;
        }
    }

    public function setParameters(array $parameters): void
    {
        try {
            $this->id = $parameters['id'];
        } catch (\Exception $e) {
            throw $e;
        }
    }
}

```

remove the task
---------------

[](#remove-the-task)

```
$scheduler = new wpScheduller('test_task');
$scheduler->remove_cron_task();

```

get the jobs
------------

[](#get-the-jobs)

```
$scheduler = new wpScheduller('test_task');
$scheduler->get_wpcron_jobs();

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.3% 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/d3ebcb853213f87e41098f299aa059b7af26a78deac22445d9c97498b0c6642c?d=identicon)[yiv-dev](/maintainers/yiv-dev)

---

Top Contributors

[![enky20](https://avatars.githubusercontent.com/u/40685453?v=4)](https://github.com/enky20 "enky20 (14 commits)")[![yiv-dev](https://avatars.githubusercontent.com/u/57898208?v=4)](https://github.com/yiv-dev "yiv-dev (1 commits)")

### Embed Badge

![Health badge](/badges/yiv-dev-wp-scheduller/health.svg)

```
[![Health](https://phpackages.com/badges/yiv-dev-wp-scheduller/health.svg)](https://phpackages.com/packages/yiv-dev-wp-scheduller)
```

PHPackages © 2026

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