PHP code example of olbie / miniq

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

    

olbie / miniq example snippets




lbie\MiniQ\MiniQ;

$miniQ = new MiniQ(__DIR__);
$server = $miniQ->createServer();
$server->start();



use olbie\MiniQ\MiniQ;
use React\EventLoop\Loop;

rkerServer();
$worker->run();



use olbie\MiniQ\MiniQ;
use olbie\MiniQ\Job;

ent = the miniQ->createClient();

for ($i = 0; $i < $totalTask; $i++) {
    $client->set(new Job(rand(1, 10)));
}