sfili81 / error-report-widget
Error Report Widget - send email when error on browser console
Package info
github.com/sfili81/ErrorReportWidget
Type:yii2-widget
pkg:composer/sfili81/error-report-widget
V1.1
2026-07-20 11:48 UTC
Requires
- yiisoft/yii2: ~2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This widget detects javascript errors in the browser console and sends them via email
The preferred way to install this extension is through composer. Either run
composer require sfili81/error-report-widget
or add
"sfili81/error-report-widget": "*"
to your composer.json
Usage
Once the extension is installed, simply use it in your code by:
use sfili81\ErrorReportWidget\ErrorReportWidget;
and then insert the code before all other javascript files
<?= ErrorReportWidget::widget() ?>
Email Address Setting
To set an email address to send the error report to, set a pair like this in the params.php file:
'supportEmail' => 'yourEmailAddress@mail.com'