mhujer/javascript-error-handler-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mhujer/javascript-error-handler-bundle

Composer 安装命令:

composer require 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.

README 文档

README

Build Status Coverage Status Latest Stable Version License

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

class AppKernel extends \Symfony\Component\HttpKernel\Kernel
{

	...

	public function registerBundles()
	{
		$bundles = [
			...
			new \Mhujer\JavaScriptErrorHandlerBundle\JavaScriptErrorHandlerBundle(),
		];

	}

Configuration

The Bundle is automatically enabled only in dev mode (by using kernel.debug configuration parameter).

You can configure it manually by adding this to your config.yml:

java_script_error_handler:
    enabled: true # or false

Requirements

PHP 8.0+ and Symfony 5.4+.

Author

Martin Hujer

Changelog

1.7 (2021-12-04)

  • require Symfony 5.4+
  • PHP 8.1 support

1.6 (2021-08-01)

  • require PHP 8.0+
  • require Symfony 5.3+

1.5 (2021-02-28)

  • require PHP 7.4+
  • require Symfony 4.4+/5.2+

1.4 (2019-11-24)

  • Symfony 5.0 compatibility

1.3 (2018-11-30)

  • Symfony 4.2 compatibility
  • dropped support for PHP 7.1 as it is no longer supported

1.2 (2018-11-16)

  • PHP 7.3 compatibility

1.1 (2018-02-08)

Fixed support for Symfony 4 and Flex

  • #3 Symfony 4 + Flex support

1.0 (2017-10-29)

As we are already using the Bundle at @driveto and with the new Symfony container tests, I'm fine with releasing it as 1.0.

  • #1 Script should have an ID (thanks @tomasfejfar)
  • #2 Container tests

0.1 (2017-10-23)

  • initial release

mhujer/javascript-error-handler-bundle 适用场景与选型建议

mhujer/javascript-error-handler-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.63k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 10 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「symfony」 「javascript」 「bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mhujer/javascript-error-handler-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mhujer/javascript-error-handler-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 mhujer/javascript-error-handler-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 9.63k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-21