PHP code example of le-dams / queue-client

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

    

le-dams / queue-client example snippets


$client = new QueueClient\Client(getenv('QUEUE_BASE_URI'), getenv('QUEUE_SECRET_KEY'), time());

$jobRequest = new QueueClient\Transactions\JobRequest();
$jobRequest->setUri('https://www.google.be');
$jobRequest->setQueue('TEST');
$jobRequest->setPriority(QueueClient\Enum\Priority::LOW);

$client->create($jobRequest);

$client = new QueueClient\Client(getenv('QUEUE_BASE_URI'), getenv('QUEUE_SECRET_KEY'), time());

$client->delete(1);