2017 © Pedro Peláez
 

package ao-queue

Resources for PARALLEL QUEUES with Laravel.

image

alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  • Tuesday, July 24, 2018
  • by alex-oliveira
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 75 % Grown

The README.md

AoQueue

Resources for PARALLEL QUEUES with Laravel., (*1)

Installation

Add "Screen" in your Ubuntu.

$ sudo apt-get install screen

Add "AoQueue" in you project.

$ composer require alex-oliveira/ao-queue

Add Provider (/config/app.php)

'providers' => [
    /*
     * Vendors Service Providers...
     */
    \AoQueue\ServiceProvider::class,
]    

Publish Vendors

$ php artisan vendor:publish --tag="ao-queue" && composer du

Run Migrations

$ php artisan migrate

Run Seeder

$ php artisan db:seed --class=AoQueueSeeder

Utilization

Initialize the Master Worker

$ php artisan ao-queue:start

Creating a Worker

<?php

namespace App\Workers;

use AoQueue\Workers\TaskWorker;

class MyWorker extends TaskWorker
{
    public function work()
    {
        // TODO: WRITE HERE THE YOUR WORKER CODE 
    }
}

Add Task to your Worker

AoQueue()->add(MyWorker::class, [
    $process_id, $process_2_id, $process_3_id
]);
AoQueue()->add(MyWorker::class, [
    $process_id => ['other' => 'data']
]);
AoQueue()->add(MyWorker::class, [
    $process_id => $process
]);

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  Sources   Download

MIT

The Requires

 

laravel queue alex-oliveira queues parallel queues

24/07 2018

1.2.1

1.2.1.0 https://github.com/alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  Sources   Download

MIT

The Requires

 

laravel queue alex-oliveira queues parallel queues

22/07 2018

1.2.0

1.2.0.0 https://github.com/alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  Sources   Download

MIT

The Requires

 

laravel queue alex-oliveira queues parallel queues

21/07 2018

1.1.0

1.1.0.0 https://github.com/alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  Sources   Download

MIT

The Requires

 

laravel queue alex-oliveira queues parallel queues

01/10 2017

1.0.0

1.0.0.0 https://github.com/alex-oliveira/ao-queue

Resources for PARALLEL QUEUES with Laravel.

  Sources   Download

MIT

The Requires

 

laravel queue alex-oliveira queues parallel queues