定制 appcheap/license 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

appcheap/license

最新稳定版本:1.3.0

Composer 安装命令:

composer require appcheap/license

包简介

Appcheap license for Wordpress plugin

README 文档

README

Requirements

Installation

You can use Composer or simply Download the Release

Composer

The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

composer require appcheap/license:^1.0

Finally, autoloader library in your main plugin file like this:

require_once __DIR__ . '/vendor/autoload.php';

Usage

Initialize the client

$client = new Appcheap\Client([
    'identify' => 'app-builder',
    'base_uri' => 'https://verify.appcheap.io/api/v1',
    'plugin_file' => __FILE__,
]);

Plugin update

$plugin = new Appcheap\Plugin($client);
$plugin->run();

Register license page

$verify = new Appcheap\Verify( $client );

$license_page = $verify->registerLicensePage(
	array(
		'parent_slug' => 'options-general.php',
		'page_title'  => 'License',
		'menu_title'  => 'License',
		'menu_slug'   => 'appcheap-license',
	)
);

Register rest api for license activation and deactivation

$verify = new Appcheap\Verify( $client );

$verify->registerRestApi(
    array(
        'namespace' => 'appcheap/v1',
        'route'     => '/license',
    )
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-04-01