Download the PHP package beycanpress/envato-license-checker without Composer
On this page you can find all versions of the php package beycanpress/envato-license-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beycanpress/envato-license-checker
More information about beycanpress/envato-license-checker
Files in beycanpress/envato-license-checker
Package envato-license-checker
Short Description A class where you can check the purchase code provided by envato so you can add a licensing system to your Envato products.
License MIT
Homepage https://github.com/BeycanPress/envato-license-checker
Informations about the package envato-license-checker
BeycanPress\EnvatoLicenseChecker - 0.1.0
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.
We will then send the purchase code we want to check to the check method. It will return true or false to us.
If you want to get purchase information, you can use the "getPurchaseData" method.
License
This library is under the MIT.