developer-ekramul/license-guard
Composer 安装命令:
composer require developer-ekramul/license-guard
包简介
Laravel License Guard package to protect your software
README 文档
README
Installation
- Place this package inside your Laravel project:
your-laravel-project/
└── packages/
└── ekram/
└── license-guard/
- Add to your root
composer.json:
"repositories": [ { "type": "path", "url": "./packages/ekram/license-guard" } ]
- Run:
composer require ekram/license-guard
- Add
.envkeys:
LICENSE_KEY=YOUR_LICENSE_KEY
LICENSE_API_URL=https://your-license-api.com/api/verify
- Use middleware in your routes:
Route::middleware(['license.guard'])->group(function () { // Your protected routes });
- Use blade directive in views:
@canUse <!-- Protected content --> @endcanUse
- 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
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-17