ahmed-tech-t/laravel-starter-kit
最新稳定版本:v1.1.7
Composer 安装命令:
composer require ahmed-tech-t/laravel-starter-kit
包简介
Custom module generator for Laravel
README 文档
README
A powerful Laravel Artisan generator to scaffold a complete Architectural Layer (Model, Service, Repository, DTO, etc.) in a single command.
This package is designed for developers who follow clean code principles and want to skip the repetitive "boilerplate" phase of starting a new feature.
Features ✨
Generates the following layers automatically:
- Model & Migration: Standard Laravel database layer.
- Service Layer: For handling Business Logic.
- Repository Pattern: Interface and Eloquent Implementation.
- DTOs & Entities: For structured data handling.
- Mappers: To transform data between layers.
- Controller: A pre-configured controller to tie it all together.
Installation 🛠️
Run the following command in your Laravel project:
composer require ahmed-tech-t/laravel-starter-kit
Usage 💡
Simply run the master command and provide the name of your entity (e.g., Product): Bash
php artisan create Product
Files Generated:
app/Models/Product.php
database/migrations/xxxx_create_products_table.php
app/Services/ProductService.php
app/Repositories/ProductRepository.php
app/Repositories/Eloquent/ProductRepositoryImp.php
app/DTOs/ProductDto.php
app/Entities/ProductEntity.php
app/Http/Controllers/ProductController.php
Requirements ⚠️
PHP: 8.0+
Laravel: 9.0 | 10.0 | 11.0+
Contributing 🤝
Contributions are welcome! If you have suggestions for improving the architecture or adding new stubs, feel free to open a Pull Request.
Maintained by Ahmed Rashed
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-03-20