PHPackages                             amoori/license-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. amoori/license-server

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

amoori/license-server
=====================

License server for Laravel

018PHP

Since Jul 5Pushed 1y agoCompare

[ Source](https://github.com/AmirMehrabi/license-server)[ Packagist](https://packagist.org/packages/amoori/license-server)[ RSS](/packages/amoori-license-server/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

License Server
==============

[](#license-server)

[![EgoistDeveloper Laravel License Server](https://camo.githubusercontent.com/0259892e387ad26485ba6243e2720f4da3b891c86e3dddecb81aa70c7249ca84/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f45676f697374446576656c6f7065722f4c61726176656c2d4c6963656e73652d5365727665722e7376673f6272616e643d6c61726176656c)](https://github.com/laravel-ready/license-server)

[![Stable Version](https://camo.githubusercontent.com/e768809f2679c3e82e39339606807cd5aca34d4314abb3208ce8178f2cb1686d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61726176656c2d72656164792f6c6963656e73652d7365727665723f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/license-server)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/license-server)[![Total Downloads](https://camo.githubusercontent.com/22f0e96d9a83594f81fa129cd899e0dbf8f2f4846451867e8629059fdf4b9224/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d72656164792f6c6963656e73652d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/license-server)[![License](https://camo.githubusercontent.com/9cacbffe4417b68f0dcf15a1e695f8f47eba1e2e7195211bcb7ddcb4798479f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c61726176656c2d72656164792f6c6963656e73652d7365727665722e7376673f7374796c653d666c61742d737175617265)](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/laravel-ready/license-connector) package. **License 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)

This package requires PHP 8.0 or higher. Also these extesnions are required:

- [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)

If the above extensions already installed, you can enable them with `php.ini`.

### Laravel

[](#laravel)

This package requires Laravel 8.x or higher. Other versions are ignored.

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

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

Get via composer

```
composer require laravel-ready/license-server
```

Publish migrations and migrate

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

# apply migrations
php artisan migrate --path=/database/migrations/laravel-ready/license-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.

```
