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(3mo ago)30[1 PRs](https://github.com/akira-io/laravel-licence-api/pulls)MITPHPPHP ^8.4CI passing

Since Feb 3Pushed 1mo agoCompare

[ Source](https://github.com/akira-io/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 1mo ago

READMEChangelogDependencies (19)Versions (2)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

35

—

LowBetter than 79% of packages

Maintenance87

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

98d 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] (2 commits)")[![kidiatoliny](https://avatars.githubusercontent.com/u/48266788?v=4)](https://github.com/kidiatoliny "kidiatoliny (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 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.0k7.8M57](/packages/dedoc-scramble)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[rickwest/laravel-wordpress-api

A Laravel read-only client for the WordPress REST API (v2)

3712.5k1](/packages/rickwest-laravel-wordpress-api)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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