maqe / laravel-qwatcher by maqe

A full-lifecycle queue jobs watcher for Laravel 5.1+
21
1
11
Package Data
Maintainer Username: maqe
Maintainer Contact: hello@maqe.com (MAQE team)
Package Create Date: 2016-10-12
Package Last Update: 2016-12-16
Language: PHP
License: proprietary
Last Refreshed: 2024-11-22 03:15:46
Package Statistics
Total Downloads: 21
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 11
Total Forks: 0
Total Open Issues: 0

laravel-qwatcher

A full-lifecycle queue jobs watcher for Laravel 5.1+

Build Status Scrutinizer Code Quality Code Coverage

Installation

Add package dependency to your project's composer.json file:

"require": {
    "maqe/laravel-qwatcher": "dev-master"
}

Run composer update:

composer update maqe/laravel-qwatcher

Add package's service provider to your project's config/app.php:

'providers' => array(
    Maqe\Qwatcher\QwatcherServiceProvider::class,
),

Add package's class aliases to your project's config/app.php:

'aliases' => array(
    'Qwatcher'  => Maqe\Qwatcher\Facades\Qwatch::class,
),

You can publish the migration with:

php artisan vendor:publish --provider="Maqe\Qwatcher\QwatcherServiceProvider" --tag="migrations"

After the migration has been published you can create the media-table by running the migrations:

php artisan migrate

Usage

In your PHP project

Once Qwatcher is included in your project you may add it to any class by simply using the trait.

For example:

use Maqe\Qwatcher\Traits\WatchableDispatchesJobs;

class Example {
    use WatchableDispatchesJobs;

    public function someMethod() {
        // WatchableDispatchesJobs trait allowed you to add additional info as an optional
        $this->dispatch(new Jobs(), array('key_addition_info1' => 'value_addition_info1'));
    }
}

License

laravel-qwatcher is released under the MIT License.