hizzle/wp-plugin-updates
Composer 安装命令:
composer require hizzle/wp-plugin-updates
包简介
Hizzle Licenses WordPress plugin updater library
README 文档
README
This library allows you to distribute WordPress plugins with automatic updates from your own Hizzle Licenses licensing server.
Features
- Flexible Configuration: Works with any custom licensing server in addition to Hizzle Licenses
- License Management: Built-in license activation/deactivation system
- Automatic Updates: Integrates seamlessly with WordPress's update system
- REST API: Optional REST endpoints for license management
- Secure: Follows WordPress best practices and security standards
Installation
Install via Composer:
composer require hizzle/wp-plugin-updates
Basic Usage
1. Initialize the Library
In your main plugin file, initialize the library with your server configuration:
<?php /** * Plugin Name: My Plugin * Plugin URI: https://myplugin.com * Description: Example plugin using Hizzle Licenses updater library * Version: 1.0.0 * Author: Your Name * Author URI: https://yourwebsite.com * Text Domain: my-plugin * Domain Path: /languages/ * Requires at least: 5.5 * Requires PHP: 7.0 * Update URI: your-licensing-server.com/your-plugin-slug */ // Update URI above is required for WordPress to recognize this plugin as updateable from your server. It should match the hostname of your licensing server. defined( 'ABSPATH' ) || exit; // Include the auto loader. require 'vendor/autoload.php'; // Initialize with your server configuration $updater = \Hizzle\WP_Plugin_Updates\Main::instance( 'your-licensing-server.com', // Hostname of your licensing server. array( 'prefix' => 'my_prefix', // Optional prefix for options and transients (default: 'your_licensing_server_com'). ) ); // Register your plugin. $updater->add( __FILE__, 'github-org/your-plugin-slug', admin_url( 'admin.php?page=my-plugin-license' ) );
Using with custom Licensing Servers (other than Hizzle Licenses)
Your licensing server needs to implement the following endpoints:
1. License Details Endpoint
GET your-licensing-server.com/wp-json/hizzle/v1/licenses/{license_key}/?website={site_url}&downloads={plugins}
Where downloads is a comma-separated list of plugin identifiers (e.g. github-org/your-plugin-slug,github-org/another-plugin).
Response should include:
{
"license": {
"is_active_on_site": true,
// ... other license details
}
}
2. License Activation Endpoint
POST your-licensing-server.com/wp-json/hizzle/v1/licenses/{license_key}/activate
Body:
{
"website": "https://example.com",
"downloads": "github-org/your-plugin-slug,github-org/another-plugin"
}
As usual, downloads is a comma-separated list of plugin identifiers that the license should be activated for.
3. License Deactivation Endpoint
POST your-licensing-server.com/wp-json/hizzle/v1/licenses/{license_key}/deactivate
Body:
{
"website": "https://example.com",
"downloads": "github-org/your-plugin-slug,github-org/another-plugin"
}
4. Version Check Endpoint
GET your-licensing-server.com/wp-json/hizzle_download/v1/versions?hizzle_license={key}&hizzle_license_url={home_url}&downloads={plugins}
Where downloads is a comma-separated list of plugin identifiers (e.g. github-org/your-plugin-slug,github-org/another-plugin).
Response should include version info for each plugin:
{
"plugin-identifier": {
"version": "1.2.0",
"download_link": "https://...",
"requires_php": "5.6",
"name": "Plugin Name",
"description": "...",
// ... other plugin info
}
}
- Leave download_link empty if the license is not valid or does not have access to updates.
- If you have both the Hizzle Downloads and Hizzle Licenses plugins installed, it will automatically handle the version check and license validation for you.
Custom Plugin Identifiers
The library sends the plugin identifiers you provide (e.g. github-org/your-plugin-slug) to the licensing server for license validation and version checks. This is useful if you sell multiple plugins and want to manage them under the same license server.
Security
- All API requests include proper authentication headers
- License keys are sanitized before storage
- Transient caching prevents excessive API calls
- Follows WordPress coding standards and security best practices
Requirements
- PHP 5.6 or higher
- WordPress 5.0 or higher
License
GPL-3.0-or-later
Support
For issues and feature requests, please use the GitHub issue tracker.
hizzle/wp-plugin-updates 适用场景与选型建议
hizzle/wp-plugin-updates 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「wordpress」 「license」 「updater」 「updates」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hizzle/wp-plugin-updates 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hizzle/wp-plugin-updates 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hizzle/wp-plugin-updates 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
HiDev plugin for license generation
Cpanel Licensing Class
Fantastico Licensing Class
Cloudlinux Licensing Class
LiteSpeed Licensing Class
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-02-05