PHP code example of yiicod / laravel5queue

1. Go to this page and download the library: Download yiicod/laravel5queue library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yiicod / laravel5queue example snippets


'preload' => ['laravel5queue'],
'components' => ['laravel5queue' => ['class' => 'yiicod\laravel5queue\Laravel5Queue']]

'queueWorker' => ['class' => 'yiicod\laravel5queue\commands\WorkerCommand'],

yiicod\laravel5queue\Laravel5Queue::push(function($job) { <--YOUR CODE HERE--> });

yiicod\laravel5queue\Laravel5Queue::push(<--YOUR HANDLER CLASS NAME->>, $data);

$ php yiic queueWorker start

$ php yiic queueWorker stop