Documentation

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
string

Verify()

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
bool

VerifyAndParse()

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

Return values
null|string

        
On this page

Search results