PHPackages                             struktal/struktal-job-executor - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. struktal/struktal-job-executor

ActiveLibrary[Queues &amp; Workers](/categories/queues)

struktal/struktal-job-executor
==============================

PHP library for executing jobs in a separate PHP process

1.0.1(3mo ago)0616↓50%1MITPHPPHP &gt;=8.2.0CI passing

Since Apr 14Pushed 3mo agoCompare

[ Source](https://github.com/Struktal/struktal-job-executor)[ Packagist](https://packagist.org/packages/struktal/struktal-job-executor)[ RSS](/packages/struktal-struktal-job-executor/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Struktal-Job-Executor
=====================

[](#struktal-job-executor)

PHP library for executing jobs in a separate PHP process

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

[](#installation)

To install this library, include it in your project using Composer:

```
composer require struktal/struktal-job-executor
```

Usage
-----

[](#usage)

You can (optionally) set a base path for your jobs by calling the `setJobDirectory` method:

```
\struktal\jobexecutor\JobExecutor::setJobDirectory(__DIR__ . "/jobs");
```

To execute a job in the background, call the `execute` method:

```
\struktal\jobexecutor\JobExecutor::execute("my-job");
```

This will execute the `my-job.php` script file with the following command:

```
cd /path/to/your/app/jobs && php my-job.php > /dev/null 2>&1 &
```

Caution

Note that both methods can throw exceptions if any of the passed parameters, or the `PHP_BINARY` constant are deemed unsafe, e.g. by checking for common patterns used in command injection attacks. However, this **must not be considered a complete safety measure against all possible attacks**. This library is designed to directly execute PHP scripts in your production environment's console, and you should therefore **never, ever pass any user input to these methods**.

License
-------

[](#license)

This software is licensed under the MIT license. See the [LICENSE](LICENSE) file for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance82

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

94d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49905418?v=4)[Jens Ostertag](/maintainers/JensOstertag)[@JensOstertag](https://github.com/JensOstertag)

---

Top Contributors

[![JensOstertag](https://avatars.githubusercontent.com/u/49905418?v=4)](https://github.com/JensOstertag "JensOstertag (2 commits)")

---

Tags

job-executor

### Embed Badge

![Health badge](/badges/struktal-struktal-job-executor/health.svg)

```
[![Health](https://phpackages.com/badges/struktal-struktal-job-executor/health.svg)](https://phpackages.com/packages/struktal-struktal-job-executor)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6046.3M586](/packages/illuminate-bus)[brave-sir-robin/amqphp

AMQP 0.9.1 Protocol Implementation in pure PHP

7932.8k](/packages/brave-sir-robin-amqphp)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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