laravel-restive/restive is a Laravel package for an api framework for laravel.
It currently has 2 GitHub stars and 210 downloads on Packagist (latest version 1.0.0).
Install it with composer require laravel-restive/restive.
Discover more Laravel packages by laravel-restive
or browse all Laravel packages to compare alternatives.
Last updated
Api Query Builder allows for complex filtering, sorting via an api endpoint.
It is intended to be part of a larger package that also provides full CRUD abilities for a Laravel API.
Full documentation is available here
but see examples below for an idea of what the package provides.
There is no current release so to install you will need to do
composer require laravel-restive/restive dev-master
Examples
where[]=id:eq:1
whereIn[]=id:(1,2,3)
whereBetween[]=age:18,45
sort[]=id,-name
would sort ascending on id, the sort descending on name
By default queries will return all columns
You can restrict columns using
columns[]=id,name
Lots more filtering options are available. see the Documentation