mhshujon/license-manager
Composer 安装命令:
composer require mhshujon/license-manager
包简介
A license manager library designed to seamlessly handle licensing APIs for both WooCommerce (WC) and Easy Digital Downloads (EDD). This library is intended to use in a WordPress environment only.
README 文档
README
Install the SDK via composer with the following command
Package URL: https://packagist.org/packages/mhshujon/license-manager
composer require mhshujon/license-manager
How to use?
Easy Digital Downloads (EDD)
Validate your license
$license_manager = new \mhshujon\LicenseManager\EDD\EDDLicenseManager(
'action', // Check https://easydigitaldownloads.com/docs/software-licensing-api/ for action list
'item-id', // Check https://easydigitaldownloads.com/docs/software-licensing-api/
'license-key',
'product-title',
'license-server-host-url'
);
$license_manager->validate_license();
$response = $license_manager->get_response();
Easy Digital Downloads (EDD)
Get plugin update
// retrieve our license key from the DB
$license_key = trim( get_option( 'edd_sample_license_key' ) );
// setup the updater
$edd_updater = new \mhshujon\LicenseManager\EDD\PluginUpdater(
'version' => '1.0', // current plugin version number
'license' => $license_key, // license key (used get_option above to retrieve from DB)
'item_id' => EDD_SAMPLE_ITEM_ID, // id of this plugin
'author' => 'Author Name', // author of this plugin
'beta' => false // set to true if you wish customers to receive update notifications of beta releases
);
mhshujon/license-manager 适用场景与选型建议
mhshujon/license-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 105 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mhshujon/license-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mhshujon/license-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 105
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-26