Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phauthentic/pagination
A framework agnostic pagination library - works with any data access layer
https://github.com/phauthentic/pagination
framework-agnostic pagination paginator paging paging-lib paging-library php7 psr psr-7
Last synced: 20 days ago
JSON representation
A framework agnostic pagination library - works with any data access layer
- Host: GitHub
- URL: https://github.com/phauthentic/pagination
- Owner: Phauthentic
- Created: 2018-10-24T11:43:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T22:15:37.000Z (about 5 years ago)
- Last Synced: 2024-12-09T21:56:58.353Z (about 1 month ago)
- Topics: framework-agnostic, pagination, paginator, paging, paging-lib, paging-library, php7, psr, psr-7
- Language: PHP
- Size: 118 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Framework agnostic Pagination
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/Phauthentic/pagination/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Phauthentic/pagination/)
[![Code Quality](https://img.shields.io/scrutinizer/g/Phauthentic/pagination/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Phauthentic/pagination/)This library is a framework agnostic way of paginating through data sets. The only dependency is [psr/http-message](https://github.com/php-fig/http-message).
It gets the information from the request object that must comply to [the PSR-7 standard](https://www.php-fig.org/psr/psr-7/) and turns it into an object that is passed to a mapper that will map it to the data layer implementation. You can implement your own paginator based on the [PaginatorInterface](./src/Paginator/PaginatorInterface.php) to create an adapter for your implementation.
## Included Paginator Adapters
* [Array](http://php.net/manual/en/language.types.array.php)
* [CakePHP ORM v3](https://book.cakephp.org/3.0/en/orm.html)
* [Doctrine2](https://www.doctrine-project.org/)
* [Elastica](https://github.com/ruflin/elastica)
* [FluentPDO](https://github.com/envms/fluentpdo)## Documentation
* [Paginators](./docs/Paginators.md)
* [Array](./docs/Paginators.md#Array)
* [CakePHP3 ORM](./docs/Paginators.md#Cake-ORM)
* [Doctrine 2](./docs/Paginators.md#Doctrine-2)
* [Elastica](./docs/Paginators.md#Elastica)
* [The Pagination Service](./docs/The-Pagination-Service.md)## Copyright & License
Licensed under the [MIT license](LICENSE.txt)
Copyright (c) [Phauthentic](https://github.com/Phauthentic)