PHP code example of chekun / httpsqs

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

    

chekun / httpsqs example snippets



    $queue = new HTTPSQS\Queue('queue_name');
    //enqueue
    $queue->push('data');
    //dequeue
    echo $queue->shift();
    //view queue status
    echo $queue->status();
    //view specific position 
    echo $queue->view($position = 1);
    //reset queue
    $queue->reset();
    //set queue max length
    $queue->maxQueue($length = 10000);