承接 ideologix/dlm-wp-simple-checker 相关项目开发

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

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

ideologix/dlm-wp-simple-checker

Composer 安装命令:

composer require ideologix/dlm-wp-simple-checker

包简介

Simple License checker made for users that don't want to provide WordPress plugin updates through Digital License Manager and our package dlm-wp-updater.

README 文档

README

WordPress simple license checker that utilizes the Digital License Manager's REST API.

This package is inspired by TheWebSolver/tws-license-manager-client.

Note: This license checker is standalone and shouldn't be used together with ideologix/dlm-wp-updater which is for more advanced usage.

Requirements

  1. WordPress 4.0+
  2. Digital License Manager, PRO is optional but recommended.

Installation

The PHP package can be imported either with Composer:

composer require ideologix/dlm-wp-simple-checker

Integration

The following example explains how to use the library within your PRO/Premium plugin.

  1. First, install the package using composer in the ROOT of your plugin.
  2. Create init.php (or name it as you wish) file in the ROOT of your plugin as follows:
if ( ! defined( 'ABSPATH' ) ) {
	die; // Prevent direct access.
}

/**
 * Require Digital License Manager simple license activation API.
 */
require_once dirname( __FILE__ ) . '/path/to/vendor/autoload.php';
if ( ! class_exists( 'YourPrefix_License_Checker' ) ) {
	class YourPrefix_License_Checker extends \IdeoLogix\DigitalLicenseManagerSimpleChecker\Main {
	}
}


/**
 * Returns the DLMs simple license checker instance
 * @return YourPrefix_License_Checker
 */
if ( ! function_exists( 'yourprefix_license_checker' ) ) {
	function yourprefix_license_checker() {
		static $checker;

		if ( ! $checker ) {
			$checker = new \Maspik_CFAS_License_Checker( [
				'name'            => 'YourPrefix - Plugin',
				'logo'            => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/logo.png',
				'prefix'          => 'yourprefix_',
				'context'         => 'plugin',
				'public_path'     => trailingslashit( dirname( __FILE__ ) ) . 'vendor/ideologix/dlm-wp-simple-checker/public/', // You can override this and set your own path if you want to customzie the views and the assets.
				'public_url'      => trailingslashit( plugin_dir_url( __FILE__ ) ) . 'vendor/ideologix/dlm-wp-simple-checker/public/', // You can override this and set your own path if you want to customzie the views and the assets.
				'consumer_key'    => 'ck_3fc0620008eb219e510b42d7a1164c7e0d28b2f1',
				'consumer_secret' => 'cs_1eef46aeae9ef30571491672fd14b9cfcaf50856',
				'api_url'         => 'http://digital-license-manager-enabled-site.com/wp-json/dlm/v1/',
				'menu'            => [
					'page_title' => 'License Activation',
					'menu_title' => 'License Activation',
					'parent_slug' => 'your-plugin-settings',
					'capaibility' => 'manage_options',
				]
			] );
		}

		return $checker;
	}
}


/**
 * Initialize it!
 */
yourprefix_license_checker();


/**
 *  @NOTES
 * 
 * --- ADVANCED USAGE ---
 * 
 *  1. To check if license is active
 *     if(yourprefix_license_checker()->license()->isLicenseValid())...
 *  2. To activate the current license
 *     yourprefix_license_checker()->license()->activate('License-key-goes-here')
 *  3. To deactivate the current license
 *     yourprefix_license_checker()->license()->deactivate()
 *  4. To remove the license completely (disables if not disabled)
 *     yourprefix_license_checker()->license()->deleteData()
 */

License

  This is part of the "Digital License Manager" WordPress plugin.
  https://darkog.com/p/digital-license-manager/
 
  Copyright (C) 2020-2024  Darko Gjorgjijoski. All Rights Reserved.
  Copyright (C) 2020-2024  IDEOLOGIX MEDIA DOOEL. All Rights Reserved.
 
  Digital License Manager is free software; you can redistribute it
  and/or modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.
 
  Digital License Manager program is distributed in the hope that it
  will be useful,but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.
 
  You should have received a copy of the GNU General Public License v3
  along with this program;
 
  If not, see: https://www.gnu.org/licenses/gpl-3.0.en.html
 
  Code written, maintained by Darko Gjorgjijoski (https://darkog.com)

ideologix/dlm-wp-simple-checker 适用场景与选型建议

ideologix/dlm-wp-simple-checker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ideologix/dlm-wp-simple-checker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ideologix/dlm-wp-simple-checker 我们能提供哪些服务?
定制开发 / 二次开发

基于 ideologix/dlm-wp-simple-checker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2024-03-06