developer-ekramul/license-guard

Laravel License Guard package to protect your software

Maintainers

Package info

github.com/haqueekramul/license-guard

pkg:composer/developer-ekramul/license-guard

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2025-07-17 19:19 UTC

This package is auto-updated.

Last update: 2026-04-17 21:00:35 UTC


README

Installation

  1. Place this package inside your Laravel project:
your-laravel-project/
└── packages/
    └── ekram/
        └── license-guard/
  1. Add to your root composer.json:
"repositories": [
    {
        "type": "path",
        "url": "./packages/ekram/license-guard"
    }
]
  1. Run:
composer require ekram/license-guard
  1. Add .env keys:
LICENSE_KEY=YOUR_LICENSE_KEY
LICENSE_API_URL=https://your-license-api.com/api/verify
  1. Use middleware in your routes:
Route::middleware(['license.guard'])->group(function () {
    // Your protected routes
});
  1. Use blade directive in views:
@canUse
    <!-- Protected content -->
@endcanUse
  1. Run license check command:
php artisan license:check

License Verification API

Your API should accept POST request with:

  • license_key
  • domain
  • ip

and respond with:

{
    "status": "valid" // or "invalid"
}

License

MIT