PHP code example of symbiote / silverstripe-sqs-jobqueue

1. Go to this page and download the library: Download symbiote/silverstripe-sqs-jobqueue 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/ */

    

symbiote / silverstripe-sqs-jobqueue example snippets



namespace \Whatever\Class\Implements;

class Work {

    public function doStuff() {

    }
}

$message = [
    'message' => [
        'args' => [$arg1, $arg2'],
        'handler' => 'taskName',
    ]
];

$sqsMessage = [
    'QueueUrl' => 'sqs://in.amazon'
    'MessageBody' => json_encode($message)
];


php vendor/symbiote/silverstripe-sqs-jobqueue/sqs-worker.php