beycanpress/envato-license-checker
最新稳定版本:0.1.0
Composer 安装命令:
composer require beycanpress/envato-license-checker
包简介
A class where you can check the purchase code provided by envato so you can add a licensing system to your Envato products.
README 文档
README
A class where you can check the purchase code provided by envato so you can add a licensing system to your Envato products.
Documentation
Installation
Using Composer
- Obtain Composer
- Run
composer require beycanpress/envato-license-checker
Use alternate file load
In case you can't use Composer, you can include EnvatoLicenseChecker.php into your project.
require_once __DIR__ . '/src/EnvatoLicenseChecker.php';
Afterwards you can use EnvatoLicenseChecker class.
Usage
First of all, we will use the setBearerToken method to set the token you created on the Envato market.
use BeycanPress\EnvatoLicenseChecker;
EnvatoLicenseChecker::setBearerToken('token');
We will then send the purchase code we want to check to the check method. It will return true or false to us.
EnvatoLicenseChecker::check('purchase-code');
If you want to get purchase information, you can use the "getPurchaseData" method.
License
This library is under the MIT.
统计信息
- 总下载量: 329
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-07