-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,15 +37,24 @@ use LaravelReady\LicenseConnector\Services\ConnectorService; | |
... | ||
|
||
$licenseKey = '46fad906-bc51-435f-9929-db46cb4baf13'; | ||
$licenseStatus = ConnectorService::validateLicense($licenseKey); | ||
$connectorService = new ConnectorService($licenseKey); | ||
|
||
if ($liceseStatus) { | ||
$isLicenseValid = $connectorService->validateLicense(); | ||
|
||
if ($isLicenseValid) { | ||
// License is valid | ||
} else { | ||
// License is invalid | ||
} | ||
``` | ||
|
||
To validating with custom data | ||
|
||
```php | ||
$customData = ['email' => '[email protected]']; | ||
$isLicenseValid = $connectorService->validateLicense($customData); | ||
``` | ||
|
||
⚠️ Don't forget this package just provides management of licenses and server communication. | ||
|
||
⚠️ Please don't confuse it with ioncube or similar source code encryption tools. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace LaravelReady\LicenseConnector\Exceptions; | ||
|
||
use Exception; | ||
|
||
final class AuthException extends Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters