PHPackages                             robertwesner/simple-mvc-php-spawner-bundle - 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. robertwesner/simple-mvc-php-spawner-bundle

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

robertwesner/simple-mvc-php-spawner-bundle
==========================================

Run background tasks that do not produce synchronous output or require monitoring.

v1.0.1(11mo ago)011MITPHPPHP &gt;=8.4CI passing

Since Jun 7Pushed 11mo agoCompare

[ Source](https://github.com/RobertWesner/simple-mvc-php-spawner-bundle)[ Packagist](https://packagist.org/packages/robertwesner/simple-mvc-php-spawner-bundle)[ RSS](/packages/robertwesner-simple-mvc-php-spawner-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Simple MVC Spawner Bundle
==========================

[](#simple-mvc-spawner-bundle)

[![](https://github.com/RobertWesner/simple-mvc-php-spawner-bundle/actions/workflows/tests.yml/badge.svg)](https://github.com/RobertWesner/simple-mvc-php-spawner-bundle/actions/workflows/tests.yml/badge.svg)[![](https://raw.githubusercontent.com/RobertWesner/simple-mvc-php-spawner-bundle/image-data/coverage.svg)](https://raw.githubusercontent.com/RobertWesner/simple-mvc-php-spawner-bundle/image-data/coverage.svg)[![](https://camo.githubusercontent.com/b1f362f49c283dd9f792d76b37a9bb30b3c92149f211a56321da02c9130c14f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f526f626572745765736e65722f73696d706c652d6d76632d7068702d737061776e65722d62756e646c65)](https://camo.githubusercontent.com/b1f362f49c283dd9f792d76b37a9bb30b3c92149f211a56321da02c9130c14f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f526f626572745765736e65722f73696d706c652d6d76632d7068702d737061776e65722d62756e646c65)[![License: MIT](https://camo.githubusercontent.com/7f5423efbfdf68621419c24f37aa5f570327e69a7c74611da19cdd0180b771ad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f526f626572745765736e65722f73696d706c652d6d76632d7068702d737061776e65722d62756e646c65)](../../raw/main/LICENSE.txt)

Run background tasks that do not produce synchronous output or require monitoring.

Fire and forget.

Created for my [YouTube playlist viewer with pagination](https://ytplaylist.robert.wesner.io).

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

[](#installation)

```
composer require robertwesner/simple-mvc-php-spawner-bundle
```

Make sure to load the bundle in your `$PROJECT_ROOT$/configurations/bundles.php`.

```
use RobertWesner\SimpleMvcPhp\Configuration;
use RobertWesner\SimpleMvcPhpSpawnerBundle\SpawnerBundle;
use RobertWesner\SimpleMvcPhpSpawnerBundle\SpawnerBundleConfiguration;

Configuration::BUNDLES
    ::load(
        SpawnerBundle::class,
        // optional, can be omitted
        new SpawnerBundleConfiguration(
            preExecuteScriptPath: __BASE_DIR__ . '/pre-command.php',
        ),
    );
```

Usage
-----

[](#usage)

### Create configuration

[](#create-configuration)

```
final readonly class MySpawnConfiguration implements SpawnConfigurationInterface
{
    public function __construct(
        private string $foo,
        private string $bar,
    ) {}

    public function __serialize(): array
    {
        return [
            'foo' => $this->foo,
            'bar' => $this->bar,
        ];
    }

    public function __unserialize(array $data): void
    {
        $this->foo = $data['foo'];
        $this->bar = $data['bar'];
    }

    public function getFoo(): string
    {
        return $this->foo;
    }

    public function getBar(): string
    {
        return $this->bar;
    }
}
```

### Create background task

[](#create-background-task)

```
class MySpawn implements SpawnInterface
{
    public function run(SpawnConfigurationInterface|MySpawnConfiguration $configuration): void
    {
        // asynchronous task with $configuration->getFoo(), etc...
    }
}
```

### Execute

[](#execute)

```
// spawner accessed through dependency injection
$this->spawner->spawn(
    EchoSpawn::class,
    new EchoSpawnConfiguration(
        'Some value',
        'Another value',
    ),
);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance51

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7492d5bc5794df95c1e6c5414ac67b831d60c644b9a443fc02307f9d17741eee?d=identicon)[RobertWesner](/maintainers/RobertWesner)

---

Top Contributors

[![RobertWesner](https://avatars.githubusercontent.com/u/155840994?v=4)](https://github.com/RobertWesner "RobertWesner (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/robertwesner-simple-mvc-php-spawner-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/robertwesner-simple-mvc-php-spawner-bundle/health.svg)](https://phpackages.com/packages/robertwesner-simple-mvc-php-spawner-bundle)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2228.8M171](/packages/react-async)[react/promise-stream

The missing link between Promise-land and Stream-land for ReactPHP

11512.9M45](/packages/react-promise-stream)[illuminate/bus

The Illuminate Bus package.

6043.8M409](/packages/illuminate-bus)

PHPackages © 2026

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