PHPackages                             deeptouchit/license-checker - 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. deeptouchit/license-checker

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

deeptouchit/license-checker
===========================

A simple license checker for Laravel applications.

05PHP

Since Jun 26Pushed 10mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Deeptouchit License Checker
===========================

[](#deeptouchit-license-checker)

A simple and efficient license key verification system for Laravel applications. This package allows you to validate your license key using an external API.

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

[](#installation)

To install the `deeptouchit/license-checker` package into your Laravel project, follow these steps:

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command in your terminal:

```
composer require deeptouchit/license-checker
```

### Step 2: Publish Configuration File

[](#step-2-publish-configuration-file)

After installing the package, you need to publish the configuration file. Run the following command:

```
php artisan vendor:publish --provider="Deeptouchit\LicenseChecker\LicenseServiceProvider" --tag=license
```

This will publish a `license.php` file in the `config` directory.

### Step 3: Set Up Configuration

[](#step-3-set-up-configuration)

Open the `config/license.php` file and configure the following fields:

- **`api_url`**: The URL of the API that validates the license key.
- **`license_key`**: The default license key for your application.
- **`domain`**: The default domain associated with your license.
- **`phone`**: The phone number associated with the license.

Example:

```
return [
    'api_url' => env('LICENSE_API_URL', 'https://yourdomain.com/api/verify-license'),
    'license_key' => env('LICENSE_KEY', 'your-default-license-key'),
    'domain' => env('LICENSE_DOMAIN', 'your-default-domain'),
    'phone' => env('LICENSE_PHONE', 'your-default-phone-number'),
];
```

Don't forget to add the environment variables to your `.env` file:

```
LICENSE_API_URL=https://yourdomain.com/api/verify-license
LICENSE_KEY=your-license-key
LICENSE_DOMAIN=your-domain
LICENSE_PHONE=your-phone-number
```

Usage
-----

[](#usage)

Once the package is installed and configured, you can use the `License` class to verify the license key.

### Example Usage:

[](#example-usage)

In your controller or anywhere in your Laravel app, you can use the `License` class to verify the license:

```
use Deeptouchit\LicenseChecker\License;
use GuzzleHttp\Client;

// Create an instance of the License class
$license = new License(new Client());

// Verify the license key
$result = $license->verify('your-license-key', 'your-domain', 'your-phone');

// Check the result
if ($result['success']) {
    echo 'License is valid!';
} else {
    echo 'License is invalid: ' . $result['message'];
}
```

### Parameters for `verify()` method:

[](#parameters-for-verify-method)

- **`$licenseKey`**: The license key to be verified.
- **`$domain`**: The domain associated with the license.
- **`$phone`**: The phone number associated with the license.

### Response:

[](#response)

The `verify()` method returns an associative array with the following keys:

- **`success`**: A boolean indicating if the license is valid.
- **`message`**: A message that provides more details (e.g., error messages or validation info).

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

---

### Author:

[](#author)

**Salzar Rahman Sabu**
Email:

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e04c2f4fce844ff8c238cdeb4d69cdb6c305f2bc07819a3e0d2cd4698a5edb72?d=identicon)[deeptouchit](/maintainers/deeptouchit)

---

Top Contributors

[![deeptouchit](https://avatars.githubusercontent.com/u/158606753?v=4)](https://github.com/deeptouchit "deeptouchit (12 commits)")

### Embed Badge

![Health badge](/badges/deeptouchit-license-checker/health.svg)

```
[![Health](https://phpackages.com/badges/deeptouchit-license-checker/health.svg)](https://phpackages.com/packages/deeptouchit-license-checker)
```

###  Alternatives

[fzaninotto/streamer

Object-oriented API to PHP streams

26617.3k1](/packages/fzaninotto-streamer)

PHPackages © 2026

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