Releases: joblocal/laravel-sqs-sns-subscription-queue
Releases · joblocal/laravel-sqs-sns-subscription-queue
Minor Bugfix
Merge pull request #10 from huubvdw/master Fix PHP 7.2 compatibility
Laravel/Lumen upgrade to 5.6
Upgrades dependencies and supports the latest Laravel & Lumen version.
v2.2 Enables routing via TopicArn
Given a message signature of:
{
"Type" : "Notification",
"MessageId" : "63a3f6b6-d533-4a47-aef9-fcf5cf758c76",
"TopicArn" : "arn:aws:sns:us-west-2:123456789012:MyTopic",
"Subject" : "Testing publish to subscribed queues",
"Message" : "Hello world!",
"Timestamp" : "2017-03-29T05:12:16.901Z",
"SignatureVersion" : "1",
"Signature" : "...",
"SigningCertURL" : "...",
"UnsubscribeURL" : "..."
}
You can now configure your routes using Subject or TopicArn:
'connections' => [
'sqs-sns' => [
'driver' => 'sqs-sns',
'key' => env('AWS_ACCESS_KEY', 'your-public-key'),
'secret' => env('AWS_SECRET_ACCESS_KEY', 'your-secret-key'),
'queue' => env('QUEUE_URL', 'your-queue-url'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'routes' => [
// you can use the "Subject" field
'Subject' => 'App\\Jobs\\YourJob',
// or the "TopicArn" of your SQS message
'TopicArn:123' => 'App\\Jobs\\YourJob',
// to specify which job class should handle the job
],
],
],
v2.1 Stable Release
Releases with stable stability and updated composer packages, ready to handle lumen and laravel 5.5!