定制 tentapress/boilerplate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.json manifests 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.php or api.php routes 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-19