thing-broken / laravel-thing-broken
A laravel adaptation of the Thing Broken library
Installs: 7 635
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- illuminate/support: >=5.0
- thing-broken/thing-broken: ^0.8.0
README
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');