10quality/wpmvc-addon-reviewer
Composer 安装命令:
composer require 10quality/wpmvc-addon-reviewer
包简介
This addon will show a review notice to an admin user, suggesting them to review the plugin or theme built in Wordpress MVC.
README 文档
README
Add-on for Wordpress MVC.
This addon will show a review notice to an admin user, suggesting them to review the plugin or theme.
The addon will manage responses and reminders to make the notice not as intrusive.
Install
Run the following composer command at your project's root:
composer require 10quality/wpmvc-addon-reviewer
Configuration
Add your project's root folder name inside the paths settings, like:
'paths' => [ 'base' => __DIR__ . '/../', 'controllers' => __DIR__ . '/../Controllers/', 'views' => __DIR__ . '/../../assets/views/', 'log' => WP_CONTENT . '/wpmvc/log', 'root_folder' => 'your-plugin-folder-name', ],
This will enable localization.
Add the following inside the addons settings:
'addons' => [ 'WPMVC\Addons\Reviewer\ReviewerAddon', ],
This will enable the addon files.
Add an extra reviewer settings:
'reviewer' => [ // Enables reviewer 'enabled' => true, // Name to display in notice 'name' => 'Project name', // Display interval in minutes 'interval' => 43200, ],
| Setting | Type | Description |
|---|---|---|
| enabled | bool |
Enables or disables the reviewer addon. |
| name | string |
Project name that will display inside the notice. |
| interval | int |
Interval in minutes. This is the time the addon will wait until the notice is displayed (for example 43200, will mean that it will display after 30 days). This interval is also used when the user selects to be reminded later. |
| url | string |
OPTIONAL, the review URL the addon will redirect the user to. If nothing is present, the addon will asume it is a Wordpress.org review and will build the url using the textdomain set in the localize settings. |
Settings using a custom review url:
'reviewer' => [ // Enables reviewer 'enabled' => true, // Name to display in notice 'name' => 'Project name', // Display interval in minutes 'interval' => 43200, // Review url 'url' => 'https://mydomain.com/my-product/review' ],
Wordpress Hooks
Filter:wpmvc_addon_reviewer_img_{namespace}
wpmvc_addon_reviewer_img_{namespace}
Allows to filter and replace the default stars.svg display in the notice, for the image of your choice.
Replace {namespace} with your Wordpress MVC project's namespace (With caps).
| Parameter | Type | Description |
|---|---|---|
$image_url |
string |
Review image url. Recommended resolution (150px x 150px). |
Usage example (namespace is TestPlugin):
add_filter( 'wpmvc_addon_reviewer_img_TestPlugin', function( $url ) { // 150px x 150px return 'https://www.domain.com/path-to/image.png'; } );
Coding Guidelines
PSR-2 coding guidelines.
License
GPLv3 License. (c) 2019 10 Quality.
10quality/wpmvc-addon-reviewer 适用场景与选型建议
10quality/wpmvc-addon-reviewer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 71 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 12 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「review」 「wpmvc」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 10quality/wpmvc-addon-reviewer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 10quality/wpmvc-addon-reviewer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 10quality/wpmvc-addon-reviewer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Review system for Symfony ecommerce applications.
WordPress MVC add-on resources (common assets).
Custom WordPress settings and admin menus for WordPress MVC (WPMVC) framework.
System status report pages for WordPress MVC framework.
A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews
Metabox generator for WordPress MVC (WPMVC) framework models.
统计信息
- 总下载量: 71
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-12