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(1y ago)011MITPHPPHP &gt;=8.4CI passing

Since Jun 7Pushed 1y 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 today

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

31

—

LowBetter than 66% of packages

Maintenance47

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

391d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/155840994?v=4)[Robert Wesner](/maintainers/RobertWesner)[@RobertWesner](https://github.com/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.6M31](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6046.3M542](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[shmilyzxt/yii2-queue

a yii2 extension to make simple to use queue.

284.8k](/packages/shmilyzxt-yii2-queue)[bsidev/bitrix-queue

Queues for Bitrix CMS

232.8k](/packages/bsidev-bitrix-queue)

PHPackages © 2026

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