anas/easy-dev

๐Ÿš€ A powerful Laravel package that supercharges development with beautiful UI, interactive CRUD generation, Repository & Service patterns, and intelligent relationship detection.

Fund package maintenance!
anasnashat

Installs: 66

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 1

Forks: 1

Open Issues: 0

Type:laravel-package

2.0.0 2025-08-20 03:06 UTC

This package is auto-updated.

Last update: 2025-08-20 06:39:59 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

๐ŸŽฏ 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 - belongsTo and hasMany
  • 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

Made with โค๏ธ for the Laravel community

โญ Star us on GitHub โ€ข ๐Ÿ“– Read the Docs โ€ข ๐Ÿ› Report Issues