An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# 🚀 Application License uses a Serial Number for client side
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/irfaardy/app-license-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/irfaardy/app-license-client/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/irfaardy/app-license-client/badges/build.png?b=master)](https://scrutinizer-ci.com/g/irfaardy/app-license-client/build-status/master) [![Latest Stable Version](https://poser.pugx.org/irfa/app-license-client/v)](//packagist.org/packages/irfa/app-license-client) [![GitHub license](https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square)](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [![Support me](https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square)](https://www.buymeacoffee.com/OBaAofN) [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](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');
```