laravel-thing-broken maintained by thing-broken
Description
A laravel adaptation of the Thing Broken library
Author
Last update
2019/09/30 16:52
(dev-master)
License
Downloads
7 636
Thing Broken for Laravel
About
This library is a Laravel adaptation of the generic Thing Broken library for PHP.
It allows you to track success criteria and be notified when a job fails - as sometimes thing can fail silently (like if a job doesn't even run).
Requirements
- PHP 7.0+
- Laravel 5.6+
- json extension
Installation
- Install our library with composer
composer require thing-broken/laravel-thing-broken
- Add Thing Broken as a service provider in
config/app.php
'providers' => [
...
\ThingBroken\LaravelThingBroken\ThingBrokenServiceProvider::class,
]
- Register the ThingBroken facade in
config/app.php
'aliases' => [
...
'ThingBroken' => \ThingBroken\LaravelThingBroken\ThingBrokenFacade::class
]
- Store an API key in your config/services.php
return [
...
'thing-broken' => [
'api_key' => env('THING_BROKEN_API_KEY'),
],
];
Usage
\ThingBroken::fire('My New Event');