PHP code example of corley / queue-sqs
1. Go to this page and download the library: Download corley/queue-sqs 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/ */
corley / queue-sqs example snippets
use Corley\Queue\AWS\V2;
$adapter = new V2\SQS($client);
use Corley\Queue\AWS\V3;
$adapter = new V3\SQS($client);
use Corley\Queue\Queue;
$queue = new Queue("https://sqs.aws.amazon.com/155555555555/test", $adapter);
$queue->send(json_encode(["test" => "ok"]));
list($receipt, $message) = $queue->receive();
$message = json_decode($message, true);
$queue->delete($receipt);
sh
composer
sh
composer