PHPackages                             freeman3s/laravel-job-status - 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. freeman3s/laravel-job-status

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

freeman3s/laravel-job-status
============================

Laravel Job Status

v0.2.1(7y ago)010MITPHPPHP &gt;=5.6.4

Since May 9Pushed 7y agoCompare

[ Source](https://github.com/freeman3s/laravel-job-status)[ Packagist](https://packagist.org/packages/freeman3s/laravel-job-status)[ RSS](/packages/freeman3s-laravel-job-status/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (12)Used By (0)

Laravel Job Status
==================

[](#laravel-job-status)

[![Latest Stable Version](https://camo.githubusercontent.com/5d6dffba183e67ec67f4f632b0b8a55e7b7d59f17fc2245b5d0d773ec9812166/68747470733a2f2f706f7365722e707567782e6f72672f696d5469676765722f6c61726176656c2d6a6f622d7374617475732f762f737461626c65)](https://packagist.org/packages/imTigger/laravel-job-status)[![Total Downloads](https://camo.githubusercontent.com/69838bf039ee916e0949e0085a8abd6027ff219cad2ec662668fa2d3f2174294/68747470733a2f2f706f7365722e707567782e6f72672f696d5469676765722f6c61726176656c2d6a6f622d7374617475732f646f776e6c6f616473)](https://packagist.org/packages/imTigger/laravel-job-status)[![License](https://camo.githubusercontent.com/3a64d9fc489b0650658d0f0f6c4bbeef50a07cade26587643925423c95436312/68747470733a2f2f706f7365722e707567782e6f72672f696d5469676765722f6c61726176656c2d6a6f622d7374617475732f6c6963656e7365)](https://packagist.org/packages/imTigger/laravel-job-status)

Laravel package to add ability to track `Job` progress, status and result dispatched to `Queue`.

- Queue name, attempts, status and created/updated/started/finished timestamp.
- Progress update, with arbitrary current/max value and percentage auto calculated
- Handles failed job with exception message
- Custom input/output
- Native Eloquent model `JobStatus`
- Support all drivers included in Laravel (null/sync/database/beanstalkd/redis/sqs)
- This package intentionally do not provide any UI for displaying Job progress.

    If you have such need, please refer to

    or make your own implementation using `JobStatus` model

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6.4
- Laravel &gt;= 5.3

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

[](#installation)

This plugin can only be installed from [Composer](https://getcomposer.org/).

Run the following command:

```
composer require imtigger/laravel-job-status

```

#### 1. Add Service Provider (Laravel &lt; 5.5)

[](#1-add-service-provider-laravel--55)

Add the following to your `config/app.php`:

```
'providers' => [
    ...
    Imtigger\LaravelJobStatus\LaravelJobStatusServiceProvider::class,
]
```

#### 2. Publish migration and config

[](#2-publish-migration-and-config)

```
php artisan vendor:publish --provider="Imtigger\LaravelJobStatus\LaravelJobStatusServiceProvider"
```

#### 3. Migrate Database

[](#3-migrate-database)

```
php artisan migrate
```

### Usage

[](#usage)

In your `Job`, use `Trackable` trait and call `$this->prepareStatus()` in constructor.

```
