https://github.com/irfaardy/app-license-client
Serial number for client side server
https://github.com/irfaardy/app-license-client
Last synced: 4 months ago
JSON representation
Serial number for client side server
- Host: GitHub
- URL: https://github.com/irfaardy/app-license-client
- Owner: irfaardy
- License: mit
- Created: 2020-11-23T11:09:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-24T02:37:01.000Z (about 5 years ago)
- Last Synced: 2024-10-12T11:46:48.415Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 Application License uses a Serial Number for client side
[](https://scrutinizer-ci.com/g/irfaardy/app-license-client/?branch=master) [](https://scrutinizer-ci.com/g/irfaardy/app-license-client/build-status/master) [](//packagist.org/packages/irfa/app-license-client) [](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [](https://www.buymeacoffee.com/OBaAofN) [](https://ko-fi.com/S6S52P7SN)
This plugin will run if you install a plugin for an endpoint server please visit here https://github.com/irfaardy/app-license-server
This plugin is used to install the application serial number on the client server
🛠️ Installation with Composer
composer require irfa/app-license-client
>You can get Composer [ here]( https://getcomposer.org/download/)
***
🛠️ Laravel Setup
Add to config/app.php
'providers' => [
....
Irfa\AppLicenseClient\AppLicenseClientServiceProvider::class,
];
Add to config/app.php
'aliases' => [
....
'ALC' => Irfa\AppLicenseClient\Facades\AppLicenseClient::class,
],
Publish Vendor
php artisan vendor:publish --tag=app-license-client
Config File
config/irfa/app-license-client.php
Plugin Settings
Tambahkan baris ini di file .env
Add this line to file .env
```php
APP_SERIAL_NUMBER=XXXX-XXXX-XXXX-XXXX
APP_LICENSE_ENDPOINT=https://example.com/check/license
```
Setting Middleware
Buka file App\Http\Kernel.php
Open file App\Http\Kernel.php
Tambahkan item ini di $routeMiddleware
Add this item in $routeMiddleware
```php
'licenseCheck' => \Irfa\AppLicenseClient\Middleware\AppLicenseChecker::class,
```
Implementasi di route
```php
Route::middleware('licenseCheck')->get('/example','TestController@index');
```