ackintosh/snidel-queue-sqs

0.1.0 2017-02-20 17:13 UTC

This package is auto-updated.

Last update: 2024-10-16 09:48:32 UTC


README

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