Skip to content

Commit

Permalink
Initial commit to support natively sqs event sourcing via bref
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-kluge committed Jan 13, 2020
1 parent 81f4831 commit 1c0df01
Show file tree
Hide file tree
Showing 9 changed files with 3,549 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# bref-sqs-laravel

Laravel adapter for bref

## Example artisan.php

```php
$kernel = $app->make(Kernel::class);
$kernel->bootstrap();

$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\StringInput(getenv('ARTISAN_COMMAND')),
new Symfony\Component\Console\Output\ConsoleOutput
);

$kernel->terminate($input, $status);
```

## Example serverless.yml

```yaml
functions:
queue:
handler: artisan.php
environment:
ARTISAN_COMMAND: 'sqs:work sqs --tries=3 --sleep=1 --delay=1'
```
38 changes: 38 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "christoph-kluge/bref-sqs-laravel",
"description": "Laravel adapter for bref",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Christoph Kluge",
"email": "[email protected]"
}
],
"require": {
"bref/bref": "^0.5"
},
"require-dev": {
"laravel/framework": "^5.8"
},
"autoload": {
"psr-4": {
"Sikei\\Bref\\Sqs\\Laravel\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Sikei\\Bref\\Tests\\Sqs\\Laravel\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"Barryvdh\\Debugbar\\ServiceProvider"
],
"aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facade"
}
}
}
}
Loading

0 comments on commit 1c0df01

Please sign in to comment.