PHPackages                             mhujer/javascript-error-handler-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mhujer/javascript-error-handler-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

mhujer/javascript-error-handler-bundle
======================================

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

1.7(4y ago)19.6k2MITPHPPHP ~8.0

Since Oct 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mhujer/JavaScriptErrorHandlerBundle)[ Packagist](https://packagist.org/packages/mhujer/javascript-error-handler-bundle)[ Docs](https://github.com/mhujer/JavaScriptErrorHandlerBundle)[ RSS](/packages/mhujer-javascript-error-handler-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (15)Versions (10)Used By (0)

JavaScriptErrorHandlerBundle
============================

[](#javascripterrorhandlerbundle)

[![Build Status](https://camo.githubusercontent.com/bfa778b37450df887ee37accc4ec584cfe4215b7bc892fc62731351571b6adab/68747470733a2f2f7472617669732d63692e6f72672f6d68756a65722f4a6176615363726970744572726f7248616e646c657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle) [![Coverage Status](https://camo.githubusercontent.com/29cc4d484aa3aeec587cfd590179b15068a2610be8aec41cd2b45529f67fd21d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d68756a65722f4a6176615363726970744572726f7248616e646c657242756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mhujer/JavaScriptErrorHandlerBundle?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/1d92fe3146e954dc90db7d6f6e775c15f659bbb49149fb69c19a77b3afb1f8da/68747470733a2f2f706f7365722e707567782e6f72672f6d68756a65722f6a6176617363726970742d6572726f722d68616e646c65722d62756e646c652f762f737461626c65)](https://packagist.org/packages/mhujer/javascript-error-handler-bundle) [![License](https://camo.githubusercontent.com/6ba795e00c1c706f88b77d906dc6693ba7ff856b1b0e1a785a02c2488e781bf0/68747470733a2f2f706f7365722e707567782e6f72672f6d68756a65722f6a6176617363726970742d6572726f722d68616e646c65722d62756e646c652f6c6963656e7365)](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
-----

[](#usage)

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

```
