PHP code example of ackintosh / snidel-queue-sqs
1. Go to this page and download the library: Download ackintosh/snidel-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/ */
ackintosh / snidel-queue-sqs example snippets
$snidel = new Snidel(array(
'aws-key' => 'YOUR AWS KEY',
'aws-secret' => 'YOUR AWS SECRET',
'aws-region' => 'YOUR AWS REGION',
'concurrency' => 2,
'taskQueue' => array(
'className' => '\Ackintosh\Snidel\Queue\Sqs\Task',
),
'resultQueue' => array(
'className' => '\Ackintosh\Snidel\Queue\Sqs\Result',
),
));
$snidel->fork(function () {
return 'hello, snidel-queue-sqs!';
});
$snidel->get()->toArray();