Download the PHP package joesu/laravel-scaffold without Composer
On this page you can find all versions of the php package joesu/laravel-scaffold. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joesu/laravel-scaffold
More information about joesu/laravel-scaffold
Files in joesu/laravel-scaffold
Package laravel-scaffold
Short Description A powerful Laravel package that provides a complete implementation of Repository and Service patterns for rapid API development.
License MIT
Homepage https://github.com/joesu/laravel-scaffold
Informations about the package laravel-scaffold
π Laravel Scaffold - Enterprise-Grade CRUD Generator
From 0 to Complete API in 30 Seconds - Auto-generate Repository, Service, Controller with Laravel best practices
Solve the Problem: Eliminate repetitive CRUD code and implement enterprise-grade architecture patterns in Laravel development.
π― Why Choose Laravel Scaffold?
Feature | Laravel Scaffold | Other Packages | |
---|---|---|---|
Repository Pattern | β Complete implementation | β Basic only | |
Service Layer | β Business logic separation | β Missing | |
Auto Setup | β Routes & bindings | β Manual setup | |
Multilingual Support | β Built-in EN/CN | β English only | γ |
Advanced Features | β Filtering, sorting, batch ops | β Limited | |
Clean Architecture | β Interface contracts | β Direct coupling |
π Quick Start
30 seconds later, you have a complete User API with enterprise architecture!
π― Perfect For
- β Enterprise API Development - Production-ready architecture
- β SaaS Backend Systems - Scalable service layer
- β Rapid Prototyping - Quick MVP development
- β Team Collaboration - Consistent code patterns
- β Code Quality - Clean architecture patterns
ποΈ Architecture
Laravel Scaffold provides a complete layered architecture with enterprise-grade patterns:
Base Classes
- BaseRepository: Full CRUD implementation with advanced features
- BaseService: Business logic layer with batch operations
Generated Structure
When you run php artisan make:repository User
, you get:
Automatic Setup:
- β
Service Provider Bindings: Automatically added to
AppServiceProvider
- β
API Routes: Automatically added to
routes/api.php
- β Dependency Injection: Ready to use with Laravel's DI container
β¨ Key Features
π Advanced Repository Features
- Complete CRUD operations with error handling
- Advanced query methods with relationship loading
- Smart filtering system (JSON and array formats)
- Relationship field filtering (e.g., 'user.name')
- Configurable sorting with whitelist protection
- Batch operations (create, update, delete)
- Soft delete support with restore functionality
- Multilingual error messages (EN/CN)
ποΈ Service Layer Features
- Business logic encapsulation
- Batch operations with transaction support
- Utility methods (updateOrCreate, exists, count)
- Soft delete operations
- Error handling with custom exceptions
π οΈ Installation & Setup
1. Install Package
2. Publish Configuration (Optional)
3. Generate Your First CRUD
What happens automatically:
- β Model is always created (needed for Repository and Service)
- β
Service provider bindings are added to
AppServiceProvider
- β
API routes are added to
routes/api.php
- β All files are properly namespaced and ready to use
- β No manual configuration required
Available Options:
--migration
: Create migration file--requests
: Create request validation classes--force
: Overwrite existing files
π Multilingual Support
Built-in support for multiple languages with automatic error message translation:
Supported Languages
- πΊπΈ English (en)
- πΉπΌ Chinese Traditional (zh-TW)
Publishing Language Files
Error Message Examples
π§ Configuration
The package automatically registers service providers and bindings. For custom configuration:
π§ͺ Testing
π Requirements
- PHP: ^8.1|^8.2|^8.3|^8.4
- Laravel: ^10.0|^11.0|^12.0
π Version Compatibility
Laravel Version | PHP Version | Status |
---|---|---|
10.x | ^8.1 | β Supported |
11.x | ^8.2 | β Supported |
12.x | ^8.2 | β Supported |
For detailed version compatibility, see VERSION_COMPATIBILITY.md.
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
π License
This package is open-sourced software licensed under the MIT License.
π Support
- π§ Issues: GitHub Issues
- π Documentation: GitHub Wiki
- π¬ Discussions: GitHub Discussions
β Show Your Support
If this package helps you, please give it a β on GitHub!
Built with β€οΈ for the Laravel community