ackintosh/snidel-queue-sqs

0.1.0 2017-02-20 17:13 UTC

This package is auto-updated.

Last update: 2024-12-16 10:13:00 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();