PHPackages                             snowsoft/jobpipeline - 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. snowsoft/jobpipeline

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

snowsoft/jobpipeline
====================

Turn any series of jobs into Laravel listeners.

2.x-dev(1mo ago)011↓100%MITPHPPHP ^8.0

Since Mar 18Pushed 1mo agoCompare

[ Source](https://github.com/snowsoft/jobpipeline)[ Packagist](https://packagist.org/packages/snowsoft/jobpipeline)[ RSS](/packages/snowsoft-jobpipeline/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (3)Versions (1)Used By (0)

Job Pipeline
============

[](#job-pipeline)

 [![Job Pipeline](https://camo.githubusercontent.com/11439454dc74579f40a4ee74859bd060dc0d825e79a707aa88a942e76c15ec57/68747470733a2f2f692e696d6775722e636f6d2f41635658616b5a2e706e67)](https://camo.githubusercontent.com/11439454dc74579f40a4ee74859bd060dc0d825e79a707aa88a942e76c15ec57/68747470733a2f2f692e696d6775722e636f6d2f41635658616b5a2e706e67)

The `JobPipeline` is a simple, yet **extremely powerful** class that lets you **convert any (series of) jobs into event listeners.**

You may use a job pipeline like any other listener, so you can register it in the `EventServiceProvider` using the `$listen` array, or in any other place using `Event::listen()` — up to you.

Creating job pipelines
----------------------

[](#creating-job-pipelines)

> These code snippets will use examples from [my multi-tenancy package](https://github.com/stancl/tenancy).

To create a job pipeline, start by specifying the jobs you want to use:

```
