kaue-f/laravel-structura
最新稳定版本:v1.5.0
Composer 安装命令:
composer require kaue-f/laravel-structura
包简介
Laravel-Structura is a tool designed to streamline and standardize the creation of resources in Laravel, promoting a more organized and scalable development structure.
README 文档
README
🌟 Introduction
Laravel-Structura is a Laravel package designed to streamline and standardize the creation of application resources, promoting a clean, scalable, and well-structured development environment.
By providing custom Artisan commands, it enables the automatic generation of Action, Cache, and Service classes-encouraging separation of concerns and adherence to architectural best practices.
Its main goal is to simplify development workflows by reducing repetitive tasks and ensuring consistency across your Laravel projects.
✨ Features
- ✅ Generate Action classes
- ✅ Generate Cache classes
- ✅ Generate Service classes
- ✅ Automatically organize namespaces
- ✅ Enforce naming conventions for clarity and maintainability
🛠 Requirements
- PHP ^8.2
- Laravel ^10.0
📦 Installation
composer require kaue-f/laravel-structura
📚 Usage Examples
Action
php artisan make:action Logout
php artisan make:action Logout --execute #Default
php artisan make:action Logout --invoke
php artisan make:action Logout --raw
Cache
php artisan make:cache Classification
php artisan make:cache Classification --base #Default
php artisan make:cache Classification --raw
Service
php artisan make:service Comment
php artisan make:service Comment --construct #Default
php artisan make:service Comment --raw
🧱 Example Structure
app/
├── Actions/
│ └── LogoutAction.php
│
├── Services/
│ └──Caches/
│ ├── BaseCache.php
│ └── ClassificationCache.php
│ └── CommentService.php
📄 License
Released under the MIT License.
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-14