thing-broken/laravel-thing-broken

This package is abandoned and no longer maintained. No replacement package was suggested.

A laravel adaptation of the Thing Broken library

v0.16.0 2019-09-30 14:52 UTC

This package is auto-updated.

Last update: 2022-02-19 20:23:37 UTC


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');