Download the PHP package ezavalishin/laravel-jsonapi-paginator without Composer
On this page you can find all versions of the php package ezavalishin/laravel-jsonapi-paginator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ezavalishin/laravel-jsonapi-paginator
More information about ezavalishin/laravel-jsonapi-paginator
Files in ezavalishin/laravel-jsonapi-paginator
Package laravel-jsonapi-paginator
Short Description :package_description
License MIT
Homepage https://github.com/ezavalishin/laravel-jsonapi-paginator
Informations about the package laravel-jsonapi-paginator
laravel-jsonapi-paginator
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Optionally you can publish the config file with:
Usage
To paginate the results according to the json API spec, simply call the jsonPaginate method.
Of course you may still use all the builder methods you know and love:
By default the maximum page size is set to 30. You can change this number in the config file or just pass the value to jsonPaginate.
Offset based pagination
Supports: ?page[offset]
and ?page[limit]
Page based pagination
Supports: ?page[number]
and ?page[size]
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Evgeniy Zavalishin
- All Contributors
License
MIT. Please see the license file for more information.
All versions of laravel-jsonapi-paginator with dependencies
illuminate/pagination Version ~7|~8
illuminate/http Version ~7|~8
php Version ^7.4