2017 © Pedro Peláez
 

library check-rollbar-limit

Naive artisan command to check rollbar limit

image

wzulfikar/check-rollbar-limit

Naive artisan command to check rollbar limit

  • Monday, March 13, 2017
  • by wzulfikar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Check Rollbar Limit

Artisan command to check rollbar limit, (*1)

  • setup rollbar access token in config/services.php
  • add service provider of this package in your config/app.php
'providers' => [
    // .. other providers
    Wzulfikar\CheckRollbarLimit\CheckRollbarLimitServiceProvider::class,
];
  • run php artisan rollbar:check-limit

The command will send post request to rollbar and check if the request was rejected because of limit exceeded. And if so, event \Wzulfikar\CheckRollbarLimit\RollbarLimitExceededEvent::class will be triggered., (*2)

To listen to above event, you can add listener in you EventServiceProviders.php. Something like:, (*3)

// app/Providers/EventServiceProvider.php
protected $listen = [
    \Wzulfikar\CheckRollbarLimit\RollbarLimitExceededEvent::class => [
        // put your listener here
    ],
];

The Versions

13/03 2017

dev-master

9999999-dev

Naive artisan command to check rollbar limit

  Sources   Download

The Requires

 

by Avatar wzulfikar

13/03 2017

0.0.1

0.0.1.0

Naive artisan command to check rollbar limit

  Sources   Download

The Requires

 

by Avatar wzulfikar