PHPackages                             themeplate/process - 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. themeplate/process

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

themeplate/process
==================

ThemePlate background process

v2.9.0(1y ago)01761GPL-3.0-onlyPHPPHP ^7.4|^8.2

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ThemePlate/Process)[ Packagist](https://packagist.org/packages/themeplate/process)[ RSS](/packages/themeplate-process/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (1)Versions (15)Used By (1)

ThemePlate Process
==================

[](#themeplate-process)

Usage
-----

[](#usage)

```
use ThemePlate\Process\Async;

// Instantiate
$background = new Async( function() {
	long_running_task();
} );

// Dispatch
$background->dispatch();
```

### new Async( $callback\_func, $callback\_args )

[](#new-async-callback_func-callback_args-)

Execute a heavy one-off task via a non-blocking request

- **$callback\_func** *(callable)(Required)* Function to run asynchronously
- **$callback\_args** *(array)(Optional)* Parameters to pass in the callback. Default `null`

### -&gt;dispatch()

[](#-dispatch)

Fire off the process in the background instantly

### -&gt;then( $callback )

[](#-then-callback-)

### -&gt;catch( $callback )

[](#-catch-callback-)

Chainable methods to handle success or error

- **$callback** *(callable)(Optional)*

---

```
use ThemePlate\Process\Tasks;

$chores = new Tasks( 'my_day' );

$chores->add( 'first_task', array( 'this', 'that' ) );
$chores->add( function() {
	another_task();
} );
```

### new Tasks( $identifier )

[](#new-tasks-identifier-)

- **$identifier** *(string)(Required)* Unique identifier

### -&gt;add( $callback\_func, $callback\_args )

[](#-add-callback_func-callback_args-)

- **$callback\_func** *(callable)(Required)* Function to run
- **$callback\_args** *(array)(Optional)* Parameters to pass. Default `null`

### -&gt;remove( $callback\_func, $callback\_args )

[](#-remove-callback_func-callback_args-)

- **$callback\_func** *(callable)(Required)* Supposed function to run
- **$callback\_args** *(array)(Optional)* The parameters passed. Default `null`

### -&gt;clear()

[](#-clear)

Remove all currently listed task

### -&gt;limit( $number )

[](#-limit-number-)

- **$number** *(int)(Required)* Number of task per run

### -&gt;every( $second )

[](#-every-second-)

- **$second** *(int)(Required)* Interval between runs

### -&gt;report( $callback )

[](#-report-callback-)

- **$callback** *(callable)(Required)* To run after completion

### Helper methods

[](#helper-methods)

#### -&gt;get\_identifier()

[](#-get_identifier)

#### -&gt;dump()

[](#-dump)

#### -&gt;is\_running()

[](#-is_running)

#### -&gt;next\_scheduled()

[](#-next_scheduled)

#### -&gt;has\_queued()

[](#-has_queued)

#### -&gt;get\_queued()

[](#-get_queued)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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 ~144 days

Recently: every ~275 days

Total

14

Last Release

369d ago

Major Versions

v1.x-dev → v2.0.02022-03-14

PHP version history (4 changes)v1.0.0PHP ^7.2

v1.1.1PHP ^7.2|^8.0

v2.1.0PHP ^7.4|^8.0

v2.7.0PHP ^7.4|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91095d431958c79a7384d515efec2686ca3cd1e1e1a5a42b680309b8e855355a?d=identicon)[kermage](/maintainers/kermage)

---

Top Contributors

[![kermage](https://avatars.githubusercontent.com/u/8350223?v=4)](https://github.com/kermage "kermage (95 commits)")

---

Tags

backgroundprocesstaskswordpress

### Embed Badge

![Health badge](/badges/themeplate-process/health.svg)

```
[![Health](https://phpackages.com/badges/themeplate-process/health.svg)](https://phpackages.com/packages/themeplate-process)
```

###  Alternatives

[php-smpp/php-smpp

PHP-based SMPP client lib

234197.5k8](/packages/php-smpp-php-smpp)[demogorgorn/yii2-ajax-submit-button

AjaxSubmitButton renders an ajax button which is very similar to ajaxSubmitButton from Yii1.

29132.8k1](/packages/demogorgorn-yii2-ajax-submit-button)[tanmuhittin/nova-scroll-top

On route change scrolls to the top

22216.2k](/packages/tanmuhittin-nova-scroll-top)

PHPackages © 2026

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