承接 mhshujon/license-manager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mhshujon/license-manager

最新稳定版本:v1.0.1

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
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-26