LaravelPackages.net
Acme Inc.
Toggle sidebar
irfa/app-license-client

"License/Serial for web apllication"

7
2
v1.0
About irfa/app-license-client

irfa/app-license-client is a Laravel package for "license/serial for web apllication". It currently has 2 GitHub stars and 7 downloads on Packagist (latest version v1.0). Install it with composer require irfa/app-license-client. Discover more Laravel packages by irfa or browse all Laravel packages to compare alternatives.

Last updated

🚀 Application License uses a Serial Number for client side

Scrutinizer Code Quality Build Status Latest Stable Version GitHub license Support me ko-fi

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


🛠️ 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

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

'licenseCheck' => \Irfa\AppLicenseClient\Middleware\AppLicenseChecker::class,

Implementasi di route

Route::middleware('licenseCheck')->get('/example','TestController@index');

Star History Chart