winex/sentinel
最新稳定版本:v1.0.1
Composer 安装命令:
composer require winex/sentinel
包简介
Sentinel package for Laravel
README 文档
README
Sentinel is a Laravel package that provides license management, trial periods, and billing integration for FilamentPHP applications.
Requirements
- PHP ^8.2
- Laravel ^12.0
- Filament ^5.0
Installation
composer require winex/sentinel
Setup
- Install the package
php artisan sentinel:install php artisan migrate
- Add to Filament Panel Provider
use Winex\Sentinel\SentinelProvider; use Winex\Sentinel\Filament\Pages\SentinelPage; public function panel(Panel $panel): Panel { return $panel ->requiresTenantSubscription() ->tenantBillingProvider(new SentinelProvider()) ->pages([ SentinelPage::class, ]); }
Configuration
Add these to your .env file (optional):
MONTHLY_PLAN=30 ANNUAL_PLAN=350 CONTACT_US=https://example.com/contact
Commands
| Command | Description |
|---|---|
php artisan sentinel:install |
Publish migration with current timestamp |
Local Development
Add to your app's composer.json:
"repositories": [ { "type": "path", "url": "../sentinel", "options": { "symlink": true } } ],
Then run:
composer require winex/sentinel:@dev
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-02