joskolenberg / laravel-jory
Create a flexible API for your Laravel application using json based queries.
Installs: 10 725
Dependents: 0
Suggesters: 0
Security: 0
Stars: 46
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- joskolenberg/eloquent-reflector: ^2.1
- joskolenberg/jory: ^2.0
- laravel/framework: ^10.0
Requires (Dev)
- orchestra/testbench: ^8.0
- v4.x-dev
- v3.x-dev
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.x-dev
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- v1.x-dev
- v1.3
- v1.2
- v1.1.1
- v1.1
- v1.0
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9
- v0.8.1
- v0.8
- v0.7.2
- v0.7.1
- v0.7
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6
- v0.5
- v0.4
- v0.3
- v0.2
- v0.1
- dev-v3.xold
- dev-laravel-9-test
- dev-refactor-testing
This package is auto-updated.
Last update: 2024-11-15 12:51:25 UTC
README
Laravel-Jory: Flexible Eloquent API Resources
Concept Overview
Laravel Jory creates a dynamic API for your Laravel application to serve the data from your Eloquent models. JoryResources are comparable to Laravel's built-in Resource classes but you only write (or generate) a JoryResource once for each model. Next, your data can be queried in a flexible way by passing a Jory Query to the Jory Endpoints.
Jory is designed to be simple enough to master within minutes but flexible enough to fit 95% of your data-fetching use-cases. It brings Eloquent Query Builder's most-used features directly to your frontend.
Supported Functions
Querying
- Selecting fields (database fields & custom attributes)
- Filtering (including nested
and
andor
clauses and custom filters) - Sorting (including custom sorts)
- Relations
- Offset & Limit
Endpoints
- Fetch a single record (like Laravel's
first()
) - Fetch a single record by id (like Laravel's
find()
) - Fetch multiple records (like Laravel's
get()
) - Fetch multiple resources at once
Aggregates
Metadata
- Total records (for pagination)
- Query count
For more information take a look at the docs.
Happy coding!
Jos Kolenberg jos@kolenbergsoftwareontwikkeling.nl