承接 stackrats/laravel-scaffold-feature 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

stackrats/laravel-scaffold-feature

最新稳定版本:0.1.9

Composer 安装命令:

composer require stackrats/laravel-scaffold-feature

包简介

Scaffold new feature directories & files from prompts

README 文档

README

A convenient Laravel package to scaffold structured feature directories and files interactively from Artisan command prompts.

Installation

Install via Composer:

composer require stackrats/laravel-scaffold-feature

Laravel automatically registers the service provider.

Usage

To scaffold a new feature, simply run:

php artisan scaffold:feature

You'll be prompted interactively for:

  • Root directory (App/Features, App/Shared/Features, or App/)
  • Optional subdirectory (e.g., KnowledgeBase)
  • Feature name (PascalCase)
  • API route method (post, get, put, delete)
  • Additional options depending on the method
  • Which directories/files to scaffold

After completing the prompts, your feature structure will be automatically created.

Publishing Templates

Optionally, you can publish the stub templates to customize them within your Laravel application:

php artisan vendor:publish --tag=laravel-scaffold-feature

The templates will be copied to:

resources/templates/vendor/laravel-scaffold-feature

Feel free to modify them according to your project's requirements.

License

This package is open-sourced software licensed under the MIT license.

Dev

Format files

./vendor/bin/pint

Run tests

./vendor/bin/pest

统计信息

  • 总下载量: 1.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-17