PHPackages                             ibrostudio/laravel-piped-tasks - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ibrostudio/laravel-piped-tasks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ibrostudio/laravel-piped-tasks
==============================

Manage tasks workflows through Laravel Pipes

2.7.0(1y ago)099MITPHPPHP ^8.4

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iBroStudio/laravel-piped-tasks)[ Packagist](https://packagist.org/packages/ibrostudio/laravel-piped-tasks)[ Docs](https://github.com/ibrostudio/laravel-piped-tasks)[ RSS](/packages/ibrostudio-laravel-piped-tasks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (23)Used By (0)

Laravel Piped Tasks
===================

[](#laravel-piped-tasks)

Manage tasks workflows through Laravel Pipes.

Concept
-------

[](#concept)

A **process** defines the order of **tasks** executed through a pipe.

Each process is associated with a **payload**. Payload is a mutable object passed to each task to retrieve, add, or update data.

Each steps of a process can be loggued through [Spatie laravel-activitylog](https://github.com/spatie/laravel-activitylog).

You can use external tasks inside a process with the **Resumable** feature.

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

[](#installation)

Install the package via composer:

```
composer require ibrostudio/laravel-piped-tasks
```

Then create the tables:

```
php artisan piped-tasks:install
```

Usage
-----

[](#usage)

**1. Create process**

First you need to generate a process:

```
php artisan make:piped-process CreateOrderProcess
```

Name your process like this : **&lt;Action&gt;&lt;Domain&gt;Process**

***Note:*** It is possible to generate processes and tasks for a package.

**2. Define Payload**

You'll find the associated payload to your process in `App\Processes\Payloads` and its interface in `App\Processes\Payloads\Contracts`.

Add properties and methods according to your workflow:

```
