magroski/simple-sqs

A simple client to send messages to Amazon SQS

v1.0.1 2019-05-20 23:05 UTC

This package is auto-updated.

Last update: 2024-12-21 21:25:58 UTC


README

Latest Stable Version Minimum PHP Version GitHub license

This library provides a quick and simple way to send messages to Amazon SQS.

Usage examples

$config = new Config('access_key', 'secret_key', 'ue-east-1', 'https://sqs.queue.url');

$client = new Client($config);

$data = json_encode(['book' => 1]);

# Real-time
$client->sendMessage($data);

# With 1 minute delay
$client->sendDelayedMessage($data, 60);