2017 © Pedro Peláez
 

library bugsmonitor-php

Bugsmonitor error notifier for PHP

image

bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  • Sunday, May 14, 2017
  • by bugsmonitor
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

BugSender PHP library

Installation

composer require bugsmonitor/bugsmonitor-php

Manually

  1. Download package from Github or clone repository
git clone git@github.com:bugsmonitor/bugsmonitor-php.git
  1. Add Autoload.php file.
require __DIR__ . '/PATH/TO/BUGSMONITOR/LIBRARY/bugsmonitor-php/src/Autoload.php';

Usage

Set error handlers

$bugsMonitor = \Bugsmonitor\Bugsmonitor::getInstance();
$bugsMonitor->init([
    'projectKey' => 'YOUR_PROJECT_KEY',
    'apiKey' => 'YOUR_API_KEY',
]);
$bugsMonitor->setHandlers();

Set user

Sometimes you may need add user to bug report, but usually, (*1)

$bugSender = \Bugsender\Bugsender::getInstance();

# set authorized user
$bugSender->setUser([
    'id' => 123,
    'name' => 'Joe Doe',
    'email' => 'joe.doe@example.com',
]);

Prevent from send sensitive data

// default not send keys
'pass',
'password',
'confirm_password',
'password_confirm',
'password_confirmation',

// you can overwrite this with
$bugsMonitor->setStopKeys(Array);

// or add other keys
$bugsMonitor->addStopKeys(Array|String);

The Versions

14/05 2017

dev-master

9999999-dev https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor

14/05 2017

1.1.2

1.1.2.0 https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor

14/05 2017

1.1.1

1.1.1.0 https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor

14/05 2017

1.1.0

1.1.0.0 https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor

25/04 2017

0.7.4

0.7.4.0 https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor

24/04 2017

0.7.1

0.7.1.0 https://github.com/bugsmonitor/bugsmonitor-php

Bugsmonitor error notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Avatar bugsmonitor

logging exception error bugs bugsmonitor