LicensingHelper
in package
Table of Contents
Methods
- Generate() : string
- Generates a new License
- Verify() : bool
- Verify's a License
- VerifyAndParse() : null|string
- Verify's a License and returns their Data as Array if valid
Methods
Generate()
Generates a new License
public
static Generate(mixed $licenseData, mixed $privateKeyFileName) : string
Parameters
- $licenseData : mixed
-
Data for the License (must be array)
- $privateKeyFileName : mixed
-
Private Key File for Signature (Keep that Key secure, don't include in resources!)
Return values
stringVerify()
Verify's a License
public
static Verify(mixed $licenseKey, mixed $publicKeyFileName) : bool
Parameters
- $licenseKey : mixed
-
The License Key Data
- $publicKeyFileName : mixed
-
Public Key File to verify Signature
Return values
boolVerifyAndParse()
Verify's a License and returns their Data as Array if valid
public
static VerifyAndParse(mixed $licenseKey, mixed $publicKeyFileName) : null|string
Parameters
- $licenseKey : mixed
-
The License Key Data
- $publicKeyFileName : mixed
-
Public Key File to verify Signature