laravel-json-api-paginate - A paginator that plays nice with the JSON API spec

  •        192

In a vanilla Laravel application the query builder paginators will listen to page request parameter. This works great, but it does not comply with the json:api spec. That spec expects the query builder paginator to listen to the page[number] and page[size] request parameters. This package adds a jsonPaginate method to the Eloquent query builder that listens to those parameters and adds the pagination links the spec requires.

https://spatie.be/en/opensource/laravel
https://github.com/spatie/laravel-json-api-paginate

Tags
Implementation
License
Platform

   




Related Projects

laravel-paginateroute - Laravel router extension to easily use Laravel's paginator without the query string

  •    PHP

This package adds the paginate route method to support pagination via custom routes instead of query strings. This also allows for easily translatable pagination routes ex. /news/page/2, /nieuws/pagina/2. Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

laravel5-jsonapi - Laravel 5 JSON API Transformer Package

  •    PHP

For the sake of having a real life example, this configuration will guide you on how to set up 7 end-points for two resources, Employees and Orders. Both Employees and Orders resources will be Eloquent models, being related one with the other.

vue-api-query - 💎 Elegant and simple way to build requests for REST API

  •    Javascript

This package helps you quickly to build requests for REST API. Move your logic and backend requests to dedicated classes. Keep your code clean and elegant. 🔥 If you use Laravel, this package matches perfectly with spatie/laravel-query-builder.

laravel-fractal - An easy to use Fractal wrapper built for Laravel and Lumen applications

  •    PHP

The package provides a nice and easy wrapper around Fractal for use in your Laravel applications. If you don't know what Fractal does, take a peek at their intro. Shortly said, Fractal is very useful to transform data before using it in an API. Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

laravel-query-builder - Easily build Eloquent queries from API requests

  •    PHP

This package allows you to filter, sort and include eloquent relations based on a request. The QueryBuilder used in this package extends Laravel's default Eloquent builder. This means all your favorite methods and macros are still available. Query parameter names follow the JSON API specification as closely as possible. Have a look at the usage section below for advanced examples and features.


laravel-newsletter - Manage newsletters in Laravel

  •    PHP

Please note the at the time of this writing the default merge variables in MailChimp are named FNAME and LNAME. In our examples we use firstName and lastName for extra readability. Make sure you rename those merge variables at MailChimp in order to make these examples work. Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

laravel-activitylog - Log activity inside your Laravel app

  •    PHP

The spatie/laravel-activitylog package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events. The Package stores all activity in the activity_log table. You can retrieve all activity using the Spatie\Activitylog\Models\Activity model.

vuejs-paginate - A Vue.js(v2.x+) component for creating pagination.

  •    Javascript

A Vue.js(v2.x+) component to make pagination. Inspired by react-paginate. Easy to use by providing simple api. And you can customize the style of this component by css.

laravel-adminpanel - A Laravel 5 Admin Panel (version : 5.7)

  •    PHP

Give your project a Head Start by using laravel-adminpanel. It gives you the ability to create a module using a sweet GUI, where you put in the Module Name and it will generate all the necessary files for you, like Model, Traits, Relationship, Migration, Controllers, Views and routes. So when you are done creating a module, you can directly go to the route generated and see your new module. Since, this does not have the ability to generate table fields for now, so you have to write the migration file that is generated and run a manual php artisan migrate command, and you are good to go.

larapi - An API-friendly fork of Laravel

  •    PHP

Larapi is an API-friendly fork of Laravel, batteries included. If you want to read a more in-depth description of the offerings and how to do modern API development in Laravel I have written a series of blogposts on the topic. Larapi comes included with...

json-api - JSON-API (http://jsonapi.org) responses in PHP.

  •    PHP

JSON-API responses in PHP. Works with version 1.0 of the spec.

laravel-langman-gui - A GUI for managing JSON translation files in your laravel projects.

  •    PHP

Langman is a GUI for managing your JSON language files in a Laravel project. Once you have added the Service Provider point your browser to http://project.dev/langman, using this interface you'll be able to browse translation keys in different languages, add/remove keys, scan your project files for missing translations, and finally save your changes to the language JSON files.

api-pagination - :page_facing_up: Link header pagination for Rails and Grape APIs.

  •    Ruby

Paginate in your headers, not in your response body. This follows the proposed RFC-5988 standard for Web linking. Note that the collection sent to paginate must respond to your paginator's methods. This is typically fine unless you're dealing with a stock Array. For Kaminari, Kaminari.paginate_array will be called for you behind-the-scenes. For WillPaginate, you're out of luck unless you call require 'will_paginate/array' somewhere. Because this pollutes Array, it won't be done for you automatically.

laravel-blade-javascript - A Blade directive to export variables to JavaScript

  •    PHP

This package contains a Blade directive to export values to JavaScript. Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

laravel-google-calendar - Manage events on a Google Calendar

  •    PHP

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website. The first thing you’ll need to do is to get some credentials to use Google API’s. I’m assuming that you’ve already created a Google account and are signed in. Head over to Google API console and click "Select a project" in the header.

PermissionManager - Admin interface for managing users, roles, permissions, using Backpack CRUD

  •    PHP

This package is just a user interface for spatie/laravel-permission. It will install it, and let you use its API in code. Please refer to their README for more information on how to use in code. Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

laravel-decomposer - A Laravel package to decompose your installed packages, their dependencies, your app & server environment

  •    HTML

Laravel Decomposer decomposes and lists all the installed packages and their dependencies along with the Laravel & the Server environment details your app is running in. Decomposer also generates a markdown report from those details that can be used for troubleshooting purposes, also it allows you to generate the same report as an array and also as JSON anywhere in your code. Laravel Package & app devs you can also add your own personal extra stats specific for your package or your app. All these just on the hit of a single route as shown below in the gif. Kind Attention : You can have a look at the Roadmap. If you have any suggestions for code improvements, new optional or core features or enhancements, create an issue so you,us or any open source believer can start working on it.

telegram-bot-sdk - 🤖 Telegram Bot API PHP SDK

  •    PHP

The (Unofficial) Telegram Bot API PHP SDK. Lets you develop Telegram Bots easily! Supports Laravel out of the box. Telegram Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.