mehedi8gb/api-crudify
Laravel package that generates standardized API CRUD (controller/service/repository/resources/requests/tests) and a query-driven pipeline for relations, filters, sorting, soft deletes, and pagination via URL params. Supports DDD namespaces and auto route/setup.
Pros:
V1/Inventory/Product) enable scalable, modular API design.?q= shorthand and low-level ?where=/?orWhere= provide granular control.Cons:
--dev, suggesting it’s intended for development environments only (e.g., scaffolding, not production).composer dump-autoload after installation, which could be automated in a custom script.HandleApiQueryRequest, IQueryHandler).CacheHandler) is optional and not enabled by default.api-crudify?CacheHandler) for high-traffic endpoints??q=, ?trashed=with) simplify client-side filtering and sorting.composer require mehedi8gb/api-crudify --dev).php artisan crudify:install and test the generated base classes.php artisan crudify:make Product) and evaluate:
CustomValidationHandler).api-crudify-generated components.Controller class. Custom middleware or traits may need adjustment.app/Models/Model.php. Existing models may need to inherit from this base class or merge logic.routes/api.php. Conflict resolution may be needed for existing routes.StoreRequest/UpdateRequest classes.composer require mehedi8gb/api-crudify --dev.php artisan crudify:install and verify base classes are generated.composer.json to include app/Helpers/Helpers.php in autoload.api, auth:sanctum) in app/Http/Kernel.php.TestResource).?q=, ?trashed=, ?sortBy=) and edge cases.How can I help you explore Laravel packages today?