Skip to content

Commit

Permalink
Shields 🔰
Browse files Browse the repository at this point in the history
  • Loading branch information
danbovey committed Nov 6, 2016
1 parent 588ff89 commit 4138185
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Laravel LinkHeader Paginator

[![Travis](https://img.shields.io/travis/danbovey/laravel-linkheader-paginator.svg)]()
[![Packagist Downloads](https://img.shields.io/packagist/dt/danbovey/laravel-linkheader-paginator.svg)]()
[![Version](https://img.shields.io/packagist/v/danbovey/laravel-linkheader-paginator.svg)]()
[![License](https://img.shields.io/packagist/l/danbovey/laravel-linkheader-paginator.svg)]()

A custom Laravel/Lumen Paginator that uses the [Link header (RFC 5988)](https://tools.ietf.org/html/rfc5988) to send pagination info in the response. Removes the envelope around `data`!

Adds a method called `toResponse` that returns a JSON response with headers. The `getHeaders` method exists if you need different response data.
Expand Down

0 comments on commit 4138185

Please sign in to comment.