PHP code example of kkchaulagain / php-queue

1. Go to this page and download the library: Download kkchaulagain/php-queue 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/ */

    

kkchaulagain / php-queue example snippets


class MainQueue extends kkchaulagain\phpQueue\BaseQueue{

}

$data = [
    'test'=>true
];
MainQueue::dispatch($data)->onQueue('mainQueue');


use kkchaulagain\phpQueue\Consumer;
Consumer::consume('test','vhost');
bash
composer