PHPackages                             mhassan654/licensing-server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mhassan654/licensing-server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mhassan654/licensing-server
===========================

Licensing server for Laravel

v1.2.1(3y ago)1121MITPHPPHP ^7.3|^8.0|^8.1

Since Oct 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mhassan654/licensing-server)[ Packagist](https://packagist.org/packages/mhassan654/licensing-server)[ RSS](/packages/mhassan654-licensing-server/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

Licensing Server
================

[](#licensing-server)

[![Stable Version](https://camo.githubusercontent.com/283bafe230b1fbd3aca1c8b3ae9ac0b702791cf6491d3fb362b5d466280e74ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d68617373616e3635342f6c6963656e73652d7365727665723f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/mhassan654/license-server)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhassan654/license-server)[![Total Downloads](https://camo.githubusercontent.com/fe0a6d402c96e3833b5c29558d2219f6ad98eb92d5ea48b4363db55fb7a63031/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d68617373616e3635342f6c6963656e73652d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhassan654/license-server)[![License](https://camo.githubusercontent.com/d53b9b4542290105a774f8dcc82df1047371d11355ee4d7cd31e1c82d25de325/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d68617373616e3635342f6c6963656e73652d7365727665722e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📂 About
-------

[](#-about)

**License Server** package, which is a Laravel package that allows you to manage your Laravel applications license. You can use it with any product or service. License Server comes with the agnostic license management system, which allows you to manage your licenses in a simple and easy way. Just add license relation to any product model then you can work in your logic.

This package requires [license-connector](https://github.com/mhassan654/licensing-connector) package. **Licensing Connector** is client implementation for License Server. Package for the client makes a request to **License Server** and gets a response.

📋 Requirements
--------------

[](#-requirements)

### PHP

[](#php)

- PHP 8.x
- [intl extension](https://secure.php.net/manual/en/book.intl.php)
- [json extension](https://secure.php.net/manual/en/book.json.php)
- [filter extension](https://secure.php.net/manual/en/book.filter.php)

### Laravel

[](#laravel)

- Laravel 8.x or 9.x version

📦 Installation (for Host App)
-----------------------------

[](#-installation-for-host-app)

Get via composer

```
composer require mhassan654/licensing-server
```

Publish migrations and migrate

```
# publish migrations
php artisan vendor:publish --tag=license-server-migrations

# apply migrations
php artisan migrate --path=/database/migrations/mhassan654/licensing-server
```

Configs are very important. You can find them in [license-server.php](config/license-server.php) file. You should read all configs and configure for your needs.

```
# publish configs
php artisan vendor:publish --tag=license-server-configs
```

🗝️ Model Relations
------------------

[](#️-model-relations)

Every license must-have product, because we need to know what it is licensed for. The client application will send this information to the License Server. Then we can check if the license is valid for given the product.

Product model can be any model that you want to be licensed. Add [Licensable](src/Traits/Licensable.php) trait to your product model.

```
