Last active
March 6, 2019 08:02
-
-
Save mitsuhirookuno/c2eb29528de15c74638265b614107bfb to your computer and use it in GitHub Desktop.
フレームワークの無いPHPでのbugsnag利用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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