PHP code example of primocys / validity-kit
1. Go to this page and download the library: Download primocys/validity-kit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
primocys / validity-kit example snippets
use ValidityKit\LicenseValidator;
Route::post('api/license/validate', function (Request $request, LicenseValidator $validator) {
return $validator->validatePurchase($request->only('purchase_code', 'username'));
});
Route::middleware('license')->group(function () {
// ...
});
bash
php artisan vendor:publish --tag=validity-kit-config