Download the PHP package youbar/easy-crud without Composer
On this page you can find all versions of the php package youbar/easy-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download youbar/easy-crud
More information about youbar/easy-crud
Files in youbar/easy-crud
Package easy-crud
Short Description Convention-driven CRUD controllers for Laravel. Magic by default, overridable everywhere.
License MIT
Homepage https://youbar.nl/docs/easy-crud
Informations about the package easy-crud
easy-crud
Convention-driven CRUD controllers for Laravel. Magic by default, overridable everywhere.
Most Laravel APIs contain the same controller forty times: list a model with
pagination, show one, create one, update one, delete one. easy-crud writes
that part once, without assuming your project is laid out like anyone else's.
That is a working, paginated, policy-aware JSON API.
easy-crud ships no conventions, so it assumes nothing about your namespaces: out of the box it returns plain JSON and validates nothing. Tell it where your resource and request classes live, once, and it finds them for every model from then on.
Installation
Requires PHP 8.2+ and Laravel 12 or 13.
The idea
One config table maps a role to a pattern, and it ships empty:
Ordered candidates, a {SubNamespace} placeholder for models grouped into
folders, a {Domain} one for modular layouts, or a closure when no pattern
fits.
A row only answers which class. The package acts on three of them —
resource, collection and request. Any other row resolves a class and waits
for you to read it in an override, which is how a service, action or repository
layer plugs in without the package knowing anything about it.
Three levels
| Conventions | Declare a model. Add a pattern per role, and every model resolves from it. |
| Method overrides | ~15 named, typed, defaulted protected methods. Override what you need. |
| Contracts | Rebind class resolution, authorization or transformation wholesale. |
Seeing what it decided
Scaffolding
Generates the controller plus the resource and request classes — at the exact paths your conventions look in, so what it writes is guaranteed to be found.
Documentation
The pages live in docs/content as plain Markdown and are
rendered by youbar.nl, which pulls this directory straight from git. Editing
docs needs no toolchain.
Contributing
See CONTRIBUTING.md. In short: conventional commits,
squash merges, composer test green.
License
MIT. See LICENSE.md.
All versions of easy-crud with dependencies
illuminate/console Version ^12.0|^13.0
illuminate/container Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0