Skip to content

RJMetrics/swf-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP SWF

A wrapper around the events in a workflow execution.

Owners: Buck Ryan

Usage

This library would normally be used in conjunction with the AWS SWF library. For example, here is how you would fetch a workflow execution history from AWS and use this library:

$client = \Aws\Swf\SwfClient::factory([
  'key' => 'my_aws_key',
  'secret' => 'my_aws_secret',
  'region' => 'my_aws_region',
]);
$result = $client->getWorkflowExecutionHistory([
  'domain' => 'swf_domain_name',
  'execution' => [
    'workflowId' => 'WorkflowId',
    'runId' => 'runid',
  ]
]);
$events = new \Swf\WorkflowEvents($result->get('events'));

// now use the object to ease the task of parsing
// the event history
$event = $events->getWorkflowStartedEvent();

Running unit tests

From this directory:

phpunit --bootstrap=test/bootstrap.php test/

About

A wrapper library around the AWS SWF event history

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages