anas/easy-dev
最新稳定版本:2.0.0
Composer 安装命令:
composer require anas/easy-dev
包简介
🚀 A powerful Laravel package that supercharges development with beautiful UI, interactive CRUD generation, Repository & Service patterns, and intelligent relationship detection.
关键字:
README 文档
README
Laravel Easy Dev v2 is a powerful package that supercharges your Laravel development workflow with beautiful UI, interactive CRUD generation, Repository & Service patterns, and intelligent relationship detection.
✨ Features
- 🚀 Enhanced CRUD Generation - Interactive CRUD with Repository and Service patterns
- 🎯 Beautiful UI - Stunning command-line interface with progress bars and colors
- 🔄 Auto Relationship Detection - Intelligent schema analysis and relationship generation
- 🏗️ Clean Architecture - Repository and Service layer with interfaces
- 📝 Smart Form Requests - Intelligent validation rules with custom error messages
- 🌐 API & Web Support - Generate controllers for both API and web routes
- 🎨 Customizable Templates - Flexible stub templates for all generated files
- 🧪 Test Generation - Generate comprehensive feature and unit tests
- 📚 Comprehensive Documentation - Built-in help system with examples
- 🎮 Interactive Mode - Step-by-step guided setup wizard
📦 Installation
Install the package via Composer:
composer require anas/easy-dev --dev
The package will automatically register itself via Laravel's package discovery.
⚙️ Configuration
Publish the configuration file:
php artisan vendor:publish --tag=easy-dev-config
Publish the stub files (optional):
php artisan vendor:publish --tag=easy-dev-stubs
🚀 Quick Start
Get started in seconds with the interactive mode:
# Interactive CRUD generation php artisan easy-dev:make Product --interactive # Quick CRUD with Repository and Service php artisan easy-dev:crud Order --with-repository --with-service # Auto-detect all relationships php artisan easy-dev:sync-relations --all
📖 Documentation
- 📚 Complete Documentation - Full guide with examples
- ⚡ Quick Start Guide - Get up and running fast
- 🔧 Command Reference - All commands and options
- 🔗 Relationship Detection - Auto-relationship system
- ⚙️ Configuration Guide - Customize everything
- 🌐 API Development - API-first development
- 💡 Examples & Use Cases - Real-world examples
🎯 Core Commands
Enhanced CRUD Generation
# Interactive mode with guided setup php artisan easy-dev:make Product --interactive # Generate with Repository and Service patterns php artisan easy-dev:crud Order --with-repository --with-service # API-only generation php artisan easy-dev:make User --api-only --with-service
Relationship Management
# Auto-detect all relationships php artisan easy-dev:sync-relations --all # Sync specific model php artisan easy-dev:sync-relations User # Add custom relationship php artisan easy-dev:add-relation User hasMany Post
Utility Commands
# Generate API resources php artisan easy-dev:api-resource Product # Generate repository pattern php artisan easy-dev:repository Order # Beautiful help guide php artisan easy-dev:help # UI demonstration php artisan easy-dev:demo-ui
🎨 Beautiful UI
Experience the stunning command-line interface:
╭─────────────────────────────────────────────────────────────╮ │ │ │ 🚀 Laravel Easy Dev CRUD Generator 🚀 │ │ │ │ Generate complete CRUD with Repository & Service patterns │ │ │ ╰─────────────────────────────────────────────────────────────╯ 10/10 [============================] 100% ✨ Finalizing...
🏗️ Generated Architecture
Laravel Easy Dev v2 creates a clean, maintainable architecture:
app/
├── Http/
│ ├── Controllers/
│ │ ├── ProductController.php # Web controller
│ │ └── Api/
│ │ └── ProductApiController.php # API controller
│ ├── Requests/
│ │ ├── StoreProductRequest.php # Validation
│ │ └── UpdateProductRequest.php # Validation
│ └── Resources/
│ ├── ProductResource.php # API resource
│ └── ProductCollection.php # API collection
├── Models/
│ └── Product.php # Enhanced model
├── Repositories/
│ ├── ProductRepository.php # Implementation
│ └── Contracts/
│ └── ProductRepositoryInterface.php # Interface
└── Services/
├── ProductService.php # Implementation
└── Contracts/
└── ProductServiceInterface.php # Interface
🔄 Intelligent Relationship Detection
Automatically detects and generates:
- Foreign Key Relationships -
belongsToandhasMany - Pivot Table Relationships -
belongsToMany - Polymorphic Relationships -
morphTo,morphOne,morphMany - Self-Referencing Relationships - Parent/child hierarchies
📋 Requirements
- PHP: 8.1+
- Laravel: 9.0+ | 10.0+ | 11.0+ | 12.0+
- Database: MySQL, PostgreSQL, or SQLite
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
📄 License
The MIT License (MIT). Please see License File for more information.
👨💻 Credits
💬 Support & Community
- 📖 Documentation: GitHub Wiki
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
- ⭐ Star us: GitHub Repository
Made with ❤️ for the Laravel community
统计信息
- 总下载量: 68
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-17