Download the PHP package chriskelemba/auto-crud without Composer
On this page you can find all versions of the php package chriskelemba/auto-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chriskelemba/auto-crud
More information about chriskelemba/auto-crud
Files in chriskelemba/auto-crud
Package auto-crud
Short Description A Laravel package providing base controller with CRUD and file operations
License MIT
Informations about the package auto-crud
Auto Crud – Zero-Code CRUD Generator for Laravel
Auto Crud is a Laravel package that gives you fully functional CRUD for both API and Web routes — with just an empty controller.
No routes file changes.
No repetitive controller methods.
No resource classes required (but supported).
Just extend one class → instant CRUD.
Features
- 100% automatic CRUD (index, show, store, update, destroy)
- JSON:API-style responses by default
- Configurable response formatter (no controller edits required)
- Soft delete support (trashed, restore, force-delete)
- Built-in file management (single + multiple upload, download, replace)
- Automatic model & resource detection using naming conventions
- Laravel Resource class integration (if exists)
- Works with standard
app/Http/Controllersand modular structure (app/Modules/*) - Automatic route registration under /api and/or web routes
- Validation rules, eager loading, ordering — all customizable with protected properties
Installation
This package ships with a JSON:API-style response format by default, and lets you override it without touching controllers.
Usage
All you require to do is to extend the package's controller file.
Auto-Generated CRUD Routes
For every controller that extends AutoCrud\Http\Controllers\Controller, the package automatically registers a full CRUD route set under the API prefix, and optionally under Web routes.
Assuming a controller named:
The base API route becomes:
Below are the complete routing tables generated for every auto-CRUD controller:
Web Routes (optional)
If you enable web routes, the same endpoints are registered under the web prefix:
The route names are prefixed with web. by default:
⚠️ Model Requirement
This package requires every controller to be provided with a model. If the model is not defined, the controller cannot perform CRUD, soft delete, or file handling operations. Make sure your configuration specifies the model used by each controller.
Custom JSON Responses (No Controller Changes)
AutoCrud returns a JSON:API-style payload by default (including pagination links/meta):
Customize the response without editing controllers
Create a formatter class in your app:
Then update your published config:
Default per-page size
The index endpoint paginates by default (10 per page). You can change it:
Configuration (via .env)
You can configure AutoCrud using environment variables (no config publish required):
Example .env
Optional: you can still publish the config if you want to hard‑code settings:
Requirements
- Laravel 12
- PHP 8.2+
Contributing
Contributions are open to everyone.
Feel free to submit issues, feature requests, or pull requests.
License
This package is open-source software licensed under the MIT License.
All versions of auto-crud with dependencies
illuminate/support Version ^12.0
illuminate/database Version ^12.0
illuminate/http Version ^12.0
illuminate/routing Version ^12.0
illuminate/validation Version ^12.0