laravel-restive / restive-sdk
An API framework for Laravel
dev-master
2020-10-11 10:37 UTC
Requires
- guzzlehttp/guzzle: ^6.3|^7.0
- league/pipeline: ^1.0
Requires (Dev)
- codedungeon/phpunit-result-printer: ^0.19.12
- mockery/mockery: ^1.1
- nunomaduro/collision: ^4.0
- orchestra/testbench: ~5.0|~6.0
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2024-12-11 20:10:01 UTC
README
Restive SDK is a companion project to Laravel Restive
It provides a fluent builder that somewhat mimics Laravel's Query Builder.
e.g.
$aqb = new ApiQueryBuilder();
$url = $aqb->where('id', 1)
->orWhere('id', 2)
->whereIn('id', [2,3,4])
->whereBetween('id', [3,4])
->orderBy('id', 'desc')
->crossJoin('user')
->select('id', 'name')->select('status')
->get();
It will produced URL fragments that follow the standard required for filtering/ordering etc, used by Laravel Restive
Documentation will be available soon.
More to come