queue plugin for snidel.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
src
.gitignore
README.md
composer.json

README.md

Snidel Amazon SQS plugin

image

Install

composer.json

{
    "require": {
    	"ackintosh/snidel": "*",
    	"ackintosh/snidel-queue-sqs": "*"
    }
}

Usage


$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();