-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit to support natively sqs event sourcing via bref
- Loading branch information
1 parent
81f4831
commit 1c0df01
Showing
9 changed files
with
3,549 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.