PHPackages                             tipusultan/licensevalidator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. tipusultan/licensevalidator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

tipusultan/licensevalidator
===========================

A simple Laravel package for license validation

v1.0.4(1y ago)012MITPHPPHP &gt;=8.1 &lt;8.5

Since Feb 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/greenviewsoft/licensevalidator)[ Packagist](https://packagist.org/packages/tipusultan/licensevalidator)[ RSS](/packages/tipusultan-licensevalidator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Laravel License Validator
=========================

[](#laravel-license-validator)

A simple Laravel package for validating software licenses.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require tipusultan/licensevalidator
```

Usage
-----

[](#usage)

### 1. Set up license key

[](#1-set-up-license-key)

Add your license key to your `.env` file:

```
PUSHER_VALIDATION_KEY=your-license-key

```

After installing the package, the license validation will automatically run for all web requests.

You can customize the cache duration in the middleware if you want to check less frequently:

```
// To change to 48 hours (2 days) of caching
Cache::put($cacheKey, true, now()->addHours(48));

// Or apply to the entire web middleware group in app/Http/Kernel.php
protected $middlewareGroups = [
    'web' => [
        // Other middleware...
        \Tipusultan\LicenseValidator\Middleware\ValidateLicense::class,
    ],
];
```

### 3. Create error view

[](#3-create-error-view)

Create a view for license errors at `resources/views/license/mismatch.blade.php`:

This approach will:

1. Run your license validation for every web request
2. Honor the caching you've implemented
3. Not require any manual middleware registration
4. Work with all routes without modifying route files

Just be aware that since this middleware is global, it will run for every request, including assets, API calls, etc. You might want to add logic to skip certain paths or request types if needed.

```

    License Validation Failed

        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
        }
        .error-container {
            max-width: 600px;
            margin: 0 auto;
            border: 1px solid #ddd;
            padding: 30px;
            border-radius: 8px;
            background-color: #f9f9f9;
        }
        h1 {
            color: #d9534f;
        }

        License Validation Failed
        This application's license is not valid for this domain.
        Please contact the software provider to obtain a valid license.

```

How It Works
------------

[](#how-it-works)

This package validates your application license against a central validation server:

1. The middleware checks if the current domain is authorized
2. The validation result is cached for 24 hours for performance
3. Console commands bypass validation

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance44

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

445d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/214b34900775a55df4724447ec946911c76aa0ee1451eb2e9f118228d8af2940?d=identicon)[greenviewsoft](/maintainers/greenviewsoft)

---

Top Contributors

[![greenviewsoft](https://avatars.githubusercontent.com/u/64749364?v=4)](https://github.com/greenviewsoft "greenviewsoft (5 commits)")

---

Tags

laravelvalidationlicense

### Embed Badge

![Health badge](/badges/tipusultan-licensevalidator/health.svg)

```
[![Health](https://phpackages.com/badges/tipusultan-licensevalidator/health.svg)](https://phpackages.com/packages/tipusultan-licensevalidator)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
