PHP code example of eluki / license-server
1. Go to this page and download the library: Download eluki/license-server 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/ */
eluki / license-server example snippets
Route::prefix('license-server')->group(function () {
Route::get('/', [LicenseServerController::class, 'createForm'])->name('server.create');
Route::get('/generate', [LicenseServerController::class, 'generateKeyForm'])->name('generate.keys');
Route::get('/download-key/{tipo}', [LicenseServerController::class, 'downloadKey'])->name('keys.download');
Route::post('/license/store', [LicenseServerController::class, 'store'])->name('server.store');
Route::post('/generate-keys', [LicenseServerController::class, 'generateKeys'])->name('keys.generate');
});
Route::post('/generate-keys', [LicenseServerController::class, 'generateKeys'])->name('keys.generate');
Route::get('/download-key/{tipo}', [LicenseServerController::class, 'downloadKey'])->name('keys.download');
bash
php artisan vendor:publish --provider="LicenseServer\ServerServiceProvider"
bash
php artisan migrate --path=database/migrations/vendor/license-server
license-server/
├── src/
│ ├── Helpers
│ │ ├── globalVariables.php
│ │ ├── HardwareHelper.php
│ │ └── LicenseHelper.php
│ ├── Http
│ │ ├── Controllers
│ │ │ └── LicenseServerController.php
│ │ ├── Middleware
│ │ │ ├── LicenseCheck.php
│ │ │ └── CheckLicense.php
│ │ └── ServerServiceProvider.php
│ ├── Models
│ │ └── License.php
│ ├── Services
│ │ └── LicenseService.php
│ └── ClientServiceProvider.php
├── config/
│ └── license.php
├── database/
│ └── migrations
├── resources/
│ └── views
├── routes/
│ └── web.php
├── composer.json
└── README.md