PHP code example of emanate / nyundo
1. Go to this page and download the library: Download emanate/nyundo 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/ */
emanate / nyundo example snippets
return [
'key' => env('LICENSE_KEY', null),
'holder' => env('LICENSE_HOLDER', null),
'warning_days' => (int) env('LICENSE_WARNING_DAYS', 7),
'expiration_date' => env('LICENSE_EXPIRATION_DATE', null),
'grace_period_days' => (int) env('LICENSE_GRACE_PERIOD_DAYS', 0),
'support' => [
'phone' => env('LICENSE_SUPPORT_PHONE', '+2557123456789'),
'email' => env('LICENSE_SUPPORT_EMAIL', '[email protected] '),
'hours' => env('LICENSE_SUPPORT_HOURS', 'Monday - Friday, 9:00 AM - 5:00 PM'),
],
'nyundo_password' => env('NYUNDO_PASSWORD', null),
];
Route::get('/login', [LoginController::class, 'showLoginForm'])
->middleware('nyundo.check-license')
->name('login');
Route::middleware(['nyundo.check-license'])->group(function () {
Route::get('/dashboard', [DashboardController::class, 'index']);
});
bash
php artisan vendor:publish --tag="nyundo-config"
bash
php artisan nyundo:status
bash
php artisan nyundo:renew \
--license-key="ABC-123" \
--expiry-date="2026-12-31" \
--warning-days=10 \
--grace-period=5
bash
php artisan vendor:publish --tag="nyundo-views"