Skip to content

Instantly share code, notes, and snippets.

@mitsuhirookuno
Last active March 6, 2019 08:02
Show Gist options
  • Save mitsuhirookuno/c2eb29528de15c74638265b614107bfb to your computer and use it in GitHub Desktop.
Save mitsuhirookuno/c2eb29528de15c74638265b614107bfb to your computer and use it in GitHub Desktop.
フレームワークの無いPHPでのbugsnag利用
php -r "readfile('https://getcomposer.org/installer');" | php
php composer.phar require guzzlehttp/guzzle
php composer.phar require bugsnag/bugsnag
```
require 'vendor/autoload.php';
$bugsnag = Bugsnag\Client::make($_ENV['BUGSNAG_API_KEY']);
$bugsnag->setReleaseStage('development');
$bugsnag->notifyException(new RuntimeException("Test error"));"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment