Skip to content

Commit 1c0df01

Browse files
Initial commit to support natively sqs event sourcing via bref
1 parent 81f4831 commit 1c0df01

9 files changed

+3549
-0
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# bref-sqs-laravel
2+
23
Laravel adapter for bref
4+
5+
## Example artisan.php
6+
7+
```php
8+
$kernel = $app->make(Kernel::class);
9+
$kernel->bootstrap();
10+
11+
$status = $kernel->handle(
12+
$input = new Symfony\Component\Console\Input\StringInput(getenv('ARTISAN_COMMAND')),
13+
new Symfony\Component\Console\Output\ConsoleOutput
14+
);
15+
16+
$kernel->terminate($input, $status);
17+
```
18+
19+
## Example serverless.yml
20+
21+
```yaml
22+
functions:
23+
queue:
24+
handler: artisan.php
25+
environment:
26+
ARTISAN_COMMAND: 'sqs:work sqs --tries=3 --sleep=1 --delay=1'
27+
```

composer.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "christoph-kluge/bref-sqs-laravel",
3+
"description": "Laravel adapter for bref",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Christoph Kluge",
9+
"email": "work@christoph-kluge.eu"
10+
}
11+
],
12+
"require": {
13+
"bref/bref": "^0.5"
14+
},
15+
"require-dev": {
16+
"laravel/framework": "^5.8"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"Sikei\\Bref\\Sqs\\Laravel\\": "src/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"Sikei\\Bref\\Tests\\Sqs\\Laravel\\": "tests/"
26+
}
27+
},
28+
"extra": {
29+
"laravel": {
30+
"providers": [
31+
"Barryvdh\\Debugbar\\ServiceProvider"
32+
],
33+
"aliases": {
34+
"Debugbar": "Barryvdh\\Debugbar\\Facade"
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)