best-it / shopware-bugsnag
An implementation for bugsnag.com in shopware
Installs: 16 052
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 1
Type:shopware-plugin
Requires
- php: ^7.0
- bugsnag/bugsnag: ^3.0
- shopware/shopware: ^5.4
Requires (Dev)
- best-it/php_codesniffer: ^1.2
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-10-24 17:50:17 UTC
README
Shopware-Bugsnag Plugin
This is a very simple implementation of bugsnag.com nothing more :)
Installation
Either create a Plugin.zip using the create_package.sh and install it through your shopware backend or require the plugin with composer
$ composer require best-it/shopware-bugsnag
Configuration
API Key:
Before activating the plugin make sure to enter you bugsnag API key. You can do this in the plugin config in the backend or through the BUGSNAG_API_KEY environment variable.
If your API Key is empty and no environment is set your shop will throw an exception.
Testing
PHPUnit tests enabled and should be written in the tests folder. To run them use
$ ./vendor/bin/phpunit
To see whether the plugin works in your environment, implement this in your code and check in the bugsnag portal.
$this->get('best_it_bugsnag.client')->notifyException(new \Exception('Test error'));