tentapress/boilerplate
最新稳定版本:0.1.0
Composer 安装命令:
composer require tentapress/boilerplate
包简介
README 文档
README
Cloneable first-party plugin starter for TentaPress.
Plugin Details
| Field | Value |
|---|---|
| ID | tentapress/boilerplate |
| Version | 0.1.0 |
| Provider | TentaPress\\Boilerplate\\BoilerplateServiceProvider |
Purpose
Provide a small, explicit starting point for new TentaPress plugins without introducing abstractions too early.
Included Patterns
- Composer and
tentapress.jsonmanifests aligned to the current plugin architecture - One service provider responsible for registration and bootstrapping
- Single-action admin controllers
- Dedicated form request with validation messages
- Explicit settings service backed by
tentapress/settings - Capability seeding during application boot
- Console command registration behind
runningInConsole() - Feature tests with local plugin autoloading
What To Rename After Cloning
- Package name in
composer.json - Plugin ID, label, menu route, and version in
tentapress.json - Namespace
TentaPress\\Boilerplate - Route URI and route names
- Capability key
manage_boilerplate - Settings keys under
boilerplate.* - View namespace
tentapress-boilerplate - Command signature
tp:boilerplate:check
Suggested Next Steps
- Add migrations only when the plugin genuinely owns data
- Add public
web.phporapi.phproutes only when needed - Add frontend assets only when the plugin owns UI beyond Blade and admin shell utilities
- Keep services small and explicit - avoid helper layers until a second use case appears
Development
php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/boilerplate
./vendor/bin/pint --dirty
composer test:filter -- Boilerplate
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-19