tfrommen/dobby
Composer 安装命令:
composer require tfrommen/dobby
包简介
Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.
README 文档
README
Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.
Installation
Install with Composer:
composer require tfrommen/dobby
Or:
- Download ZIP.
- Upload contents to the
/wp-content/plugins/directory on your web server. - Activate the plugin through the Plugins menu in WordPress.
- See only a single admin notice, if at all.
Requirements
This plugin requires PHP 5.4 or higher, but you really should be using PHP 7 or higher, as we all know.
Usage
Dobby captures everything that gets printed on one of the admin notice hooks (i.e., network_admin_notices, user_admin_notices, admin_notices and all_admin_notices), and hides it, for now.
In case Dobby did capture anything, he will inform you (yes, via an admin notice).
Filters
In order to customize certain aspects of the plugin, it provides you with several filters.
For each of these, a short description as well as a code example on how to alter the default behavior is given below.
Just put the according code snippet in your theme's functions.php file or your customization plugin, or to some other appropriate place.
\tfrommen\Dobby\FILTER_THRESHOLD (dobby.threshold)
This filter lets you customize the minimum number of admin notices required for Dobby to take action.
The default value is 1.
Usage Example:
<?php /** * Filter the minimum number of admin notices required for Dobby to take action. * * @param int $threshold Required minimum number of admin notices. */ add_filter( \tfrommen\Dobby\FILTER_THRESHOLD, function () { return 3; } );
tfrommen/dobby 适用场景与选型建议
tfrommen/dobby 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 36, 最近一次更新时间为 2017 年 07 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「admin」 「notices」 「dobby」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tfrommen/dobby 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tfrommen/dobby 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tfrommen/dobby 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
An helper library to create persistent and dismissible WordPress admin notices.
Analysis module for finding problematical shop data.
Simple notices administration
Adds a wrapper layer to store notices for wptrt/admin-notices
WordPress admin notices as flash notice using transient API to display after page reload.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 36
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-16
