Download the PHP package mamunhoque/laravel-crud-builder without Composer
On this page you can find all versions of the php package mamunhoque/laravel-crud-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mamunhoque/laravel-crud-builder
More information about mamunhoque/laravel-crud-builder
Files in mamunhoque/laravel-crud-builder
Package laravel-crud-builder
Short Description Advanced Laravel CRUD Builder - Automatically generate complete CRUD operations with intelligent migration parsing and code generation
License MIT
Homepage https://github.com/mamunhoque/laravel-crud-builder
Informations about the package laravel-crud-builder
Laravel CRUD Builder
An advanced Laravel package that automatically generates complete CRUD operations with intelligent migration parsing and sophisticated code generation. This package goes beyond simple scaffolding by analyzing your existing migration files and generating production-ready code that follows Laravel best practices.
Features
🚀 Intelligent Migration Parsing
- Sophisticated analysis of migration files beyond simple regex
- Handles complex column definitions, relationships, and constraints
- Supports both PostgreSQL and MySQL/MariaDB syntax
- Parses foreign keys, indexes, and enum values
🧠 Smart Code Generation
- Generates appropriate validation rules based on column types and constraints
- Creates dynamic search keys from text/varchar columns
- Auto-detects and handles file upload fields
- Generates API Resource classes for consistent response formatting
- Implements relationship-aware filtering
🎯 Complete CRUD Stack
- Models with fillable attributes, relationships, and accessors
- Controllers with proper error handling and resource responses
- Services with business logic and filtering capabilities
- Form Requests with intelligent validation rules
- API Resources for consistent data transformation
- Factories with realistic fake data generation
- Tests (Feature and Unit) with comprehensive coverage
⚙️ Advanced Configuration
- Support for multiple middleware groups (admin, public, auth, custom)
- Configurable route prefixes and naming conventions
- Flexible file paths and namespaces
- Soft deletes and timestamps support
- Database compatibility for PostgreSQL, MySQL, and SQLite
Installation
You can install the package via Composer:
Publish the configuration file:
Optionally, publish the stub files for customization:
The package automatically publishes the HelperTrait
to app/Traits/HelperTrait.php
when installed. If you need to republish it:
Quick Start
Basic Usage
Generate a complete CRUD for a model based on an existing migration:
This will generate:
app/Models/Post.php
app/Http/Controllers/PostController.php
app/Services/PostService.php
app/Http/Requests/StorePostRequest.php
app/Http/Requests/UpdatePostRequest.php
app/Http/Resources/PostResource.php
database/factories/PostFactory.php
tests/Feature/PostControllerTest.php
tests/Unit/PostTest.php
- Routes added to
routes/api.php
Selective Generation
Generate only specific components:
Middleware and Route Configuration
Individual Commands
Generate components individually:
Migration Requirements
The package analyzes your existing migration files. Ensure your migration follows Laravel conventions:
Generated Code Examples
Model with Relationships
Service with Intelligent Filtering
Smart Validation Rules
Configuration
The package is highly configurable. Here are some key configuration options:
Advanced Features
Relationship-Aware Filtering
The package automatically generates filters for relationships:
File Upload Detection
Automatically detects file upload fields and generates appropriate handling:
HelperTrait Features
The package includes a comprehensive HelperTrait
with useful methods:
Comprehensive Testing
Generates both feature and unit tests:
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher
- Existing migration files for the models you want to generate
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Mamun Hoque
- All Contributors
Roadmap
- [ ] Support for API versioning
- [ ] GraphQL schema generation
- [ ] Custom stub templates
- [ ] Integration with Laravel Sanctum
- [ ] Automatic API documentation generation
- [ ] Support for polymorphic relationships
- [ ] Database seeder generation
- [ ] Integration with Laravel Horizon for queued operations
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-crud-builder with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/console Version ^10.0|^11.0
illuminate/filesystem Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0