PHPackages                             renoki-co/laravel-chained-jobs-shared-data - 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. renoki-co/laravel-chained-jobs-shared-data

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

renoki-co/laravel-chained-jobs-shared-data
==========================================

Share data between chained jobs in Laravel.

1.1.0(5y ago)581MITPHP

Since Jun 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/renoki-co/laravel-chained-jobs-shared-data)[ Packagist](https://packagist.org/packages/renoki-co/laravel-chained-jobs-shared-data)[ Docs](https://github.com/renoki-co/laravel-chained-jobs-shared-data)[ GitHub Sponsors](https://github.com/renoki-co)[ RSS](/packages/renoki-co-laravel-chained-jobs-shared-data/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel Chained Jobs Shared Data
================================

[](#laravel-chained-jobs-shared-data)

[![CI](https://github.com/renoki-co/laravel-chained-jobs-shared-data/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/laravel-chained-jobs-shared-data/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/b23dfb8d4591febd04dd14324de574f4f85d7165ae0c8269765c834485188a9f/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6c61726176656c2d636861696e65642d6a6f62732d7368617265642d646174612f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/laravel-chained-jobs-shared-data/branch/master)[![StyleCI](https://camo.githubusercontent.com/c3388724983eb3322932a84e26518ec02fb37159ff14b68cf26cc7ac9006fb4e/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3237333036313539372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/273061597)[![Latest Stable Version](https://camo.githubusercontent.com/812f1c1b9ca6a3b0a38314ccd634dc406492ce7706015f90c75537e4eaec8f1a/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d636861696e65642d6a6f62732d7368617265642d646174612f762f737461626c65)](https://packagist.org/packages/renoki-co/laravel-chained-jobs-shared-data)[![Total Downloads](https://camo.githubusercontent.com/d69a03884af5bd0af47c6f76440677c8a750ee65e7680d0aee291eb1a71712f2/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d636861696e65642d6a6f62732d7368617265642d646174612f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/laravel-chained-jobs-shared-data)[![Monthly Downloads](https://camo.githubusercontent.com/9df1b3263b765866056a10b37c717848f14994f4007389c94ed277cc500ce6a9/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d636861696e65642d6a6f62732d7368617265642d646174612f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/laravel-chained-jobs-shared-data)[![License](https://camo.githubusercontent.com/4d2d92881cf4a95bc1e533270da668b406210ffbb3743d26d505e0127594b956/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d636861696e65642d6a6f62732d7368617265642d646174612f6c6963656e7365)](https://packagist.org/packages/renoki-co/laravel-chained-jobs-shared-data)

Chained Jobs Shared Data is a package that helps you share some data (usually an array) between chained jobs.

🤝 Supporting
------------

[](#-supporting)

Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.

If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/laravel-chained-jobs-shared-data
```

🙌 Usage
-------

[](#-usage)

You just have to replace the default job's `Dispatchable` and `Queueable` traits with the ones provided by this package.

```
// use Illuminate\Bus\Queueable;
// use Illuminate\Foundation\Bus\Dispatchable;
use RenokiCo\ChainedJobsSharedData\Traits\Dispatchable;
use RenokiCo\ChainedJobsSharedData\Traits\Queueable;

class MyJob implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    // the rest of job here
}
```

Use Case
--------

[](#use-case)

The main use case is to share some data between chained jobs, while being able to modify it and be retrieved in the next jobs with the previous modifications.

```
CreateUser::withChain([
    new CreateApiKey,
    new MakeTestApiCall,
])->dispatch();
```

The `CreateApiKey` and `MakeTestApiCall` are the jobs that depend by the `CreateUser` at glance.

Without using this package's traits, the only workaround would be to trigger the `CreateApiKey` in the `CreateUser` job, then trigger the next one, and the next one, etc. and you will end up bad code to manage and troubleshoot.

If all job classes use the previous mentioned traits, having some shared data is going to ease the job:

```
// CreateUser.php

public function handle()
{
    $user = $this->createUser();

    $this->sharedData['user'] = $user;
}
```

```
// CreateApiKey.php

public function handle()
{
    $apiKey = $this->createApiKeyForUser($this->sharedData['user']);

    $this->sharedData['api_key'] = $apiKey;
}
```

```
// MakeTestApiCall.php

public function handle()
{
    $this->makeApiCall(
        $this->sharedData['user'],
        $this->sharedData['api_key'],
    );
}
```

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

2074d ago

Major Versions

0.0.1 → 1.0.02020-07-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21983456?v=4)[rennokki](/maintainers/rennokki)[@rennokki](https://github.com/rennokki)

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (15 commits)")

---

Tags

chained-jobsjobslaravelpackagephpqueuetraitstriggerphplaravelqueuejobsshared

### Embed Badge

![Health badge](/badges/renoki-co-laravel-chained-jobs-shared-data/health.svg)

```
[![Health](https://phpackages.com/badges/renoki-co-laravel-chained-jobs-shared-data/health.svg)](https://phpackages.com/packages/renoki-co-laravel-chained-jobs-shared-data)
```

###  Alternatives

[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

254255.2k6](/packages/croustibat-filament-jobs-monitor)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)[renoki-co/horizon-exporter

Export Laravel Horizon metrics using this Prometheus exporter.

24152.7k](/packages/renoki-co-horizon-exporter)[webparking/laravel-queue-ensurer

This composer package provides a Laravel queue ensurer.

6416.1k](/packages/webparking-laravel-queue-ensurer)[mateffy/laravel-job-progress

Track and show progress of your background jobs (for progress bar UIs etc.)

451.2k](/packages/mateffy-laravel-job-progress)

PHPackages © 2026

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