PHPackages                             akira/laravel-licence-api - 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. [API Development](/categories/api)
4. /
5. akira/laravel-licence-api

ActiveLibrary[API Development](/categories/api)

akira/laravel-licence-api
=========================

RESTful API package for laravel-license-core. Provides complete API endpoints for license validation, activation, usage tracking, and management.

1.x-dev(2mo ago)30[3 PRs](https://github.com/kidiatoliny/laravel-licence-api/pulls)MITPHPPHP ^8.4CI passing

Since Apr 10Pushed 2w agoCompare

[ Source](https://github.com/kidiatoliny/laravel-licence-api)[ Packagist](https://packagist.org/packages/akira/laravel-licence-api)[ Docs](https://github.com/akira/laravel-licence-api)[ GitHub Sponsors](https://github.com/kidiatoliny)[ RSS](/packages/akira-laravel-licence-api/feed)WikiDiscussions 1.x Synced today

READMEChangelogDependencies (19)Versions (5)Used By (0)

Laravel License API
===================

[](#laravel-license-api)

RESTful API package for [laravel-license-core](https://github.com/akira/laravel-license-core). This package provides complete API endpoints for license validation, activation, usage tracking, and management.

Features
--------

[](#features)

- License listing and retrieval
- License validation by key
- License activation management
- Full REST API with proper HTTP status codes
- Laravel Sanctum ready for authentication
- Comprehensive API Resources for clean JSON responses
- Form Request validation for all endpoints
- Spatie Route Attributes for clean route definitions

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

[](#installation)

```
composer require akira/laravel-licence-api
```

API Endpoints
-------------

[](#api-endpoints)

### Licenses

[](#licenses)

#### List Licenses

[](#list-licenses)

```
GET /api/v1/licenses

```

#### Get License

[](#get-license)

```
GET /api/v1/licenses/{id}

```

#### Validate License

[](#validate-license)

```
POST /api/v1/licenses/validate
Content-Type: application/json

{
  "key": "LICENSE-KEY"
}

```

### License Activations

[](#license-activations)

#### List Activations

[](#list-activations)

```
GET /api/v1/licenses/{license}/activations

```

#### Get Activation

[](#get-activation)

```
GET /api/v1/licenses/{license}/activations/{activation}

```

#### Create Activation

[](#create-activation)

```
POST /api/v1/licenses/{license}/activations
Content-Type: application/json

{
  "license_id": 1,
  "domain": "example.com",
  "machine_hash": "abc123def456",
  "ip": "192.168.1.1",
  "user_agent": "Mozilla/5.0"
}

```

#### Delete Activation

[](#delete-activation)

```
DELETE /api/v1/licenses/{license}/activations/{activation}

```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Akira\LaravelLicenseApi\LaravelLicenseApiServiceProvider"
```

Configure the API prefix and middleware in `config/licence-api.php`:

```
return [
    'prefix' => env('LICENCE_API_PREFIX', 'api/v1'),
    'middleware' => ['api'],
];
```

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

Run specific test suites:

```
composer run test:lint    # Code style
composer run test:refactor # Rector checks
composer run test:types    # PHPStan static analysis
composer run test:arch     # Architecture tests
composer run test:coverage # Code coverage
```

Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 12.0+
- laravel-license-core ^1.0

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance91

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

85d ago

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![kidiatoliny](https://avatars.githubusercontent.com/u/48266788?v=4)](https://github.com/kidiatoliny "kidiatoliny (2 commits)")

---

Tags

apilaravelakiralaravel-licenselaravel-license-api

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/akira-laravel-licence-api/health.svg)

```
[![Health](https://phpackages.com/badges/akira-laravel-licence-api/health.svg)](https://phpackages.com/packages/akira-laravel-licence-api)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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