Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhujer/javascripterrorhandlerbundle

Converts JavaScript errors to alerts, so you won't miss them if you don't have the browser console open.
https://github.com/mhujer/javascripterrorhandlerbundle

bundle javascript php symfony symfony-bundle

Last synced: about 2 months ago
JSON representation

Converts JavaScript errors to alerts, so you won't miss them if you don't have the browser console open.

Awesome Lists containing this project

README

        

# JavaScriptErrorHandlerBundle
[![Build Status](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle.svg?branch=master)](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle) [![Coverage Status](https://coveralls.io/repos/github/mhujer/JavaScriptErrorHandlerBundle/badge.svg?branch=master)](https://coveralls.io/github/mhujer/JavaScriptErrorHandlerBundle?branch=master) [![Latest Stable Version](https://poser.pugx.org/mhujer/javascript-error-handler-bundle/v/stable)](https://packagist.org/packages/mhujer/javascript-error-handler-bundle) [![License](https://poser.pugx.org/mhujer/javascript-error-handler-bundle/license)](https://packagist.org/packages/mhujer/javascript-error-handler-bundle)

It is easy to break the JavaScript in the application while doing some non-JS change. And if you don't have the browser console open, you may not notice it.

This Bundle injects a JavaScript handler, which converts JavaScript errors to `alert()`. So they can't hide in the console unnoticed.

Usage
----
1. Install the latest version with `composer require mhujer/javascript-error-handler-bundle`
2. Register the Bundle in the `AppKernel.php`:

```php