Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spacetab-io/pagerfanta-adapt-php
Pagerfanta pagination adapters.
https://github.com/spacetab-io/pagerfanta-adapt-php
adapters paginate php php74
Last synced: about 1 month ago
JSON representation
Pagerfanta pagination adapters.
- Host: GitHub
- URL: https://github.com/spacetab-io/pagerfanta-adapt-php
- Owner: spacetab-io
- License: mit
- Created: 2020-04-06T07:22:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T13:55:35.000Z (over 4 years ago)
- Last Synced: 2024-09-30T18:10:47.172Z (about 2 months ago)
- Topics: adapters, paginate, php, php74
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Pagerfanta Adapt PHP
====================[![CircleCI](https://circleci.com/gh/spacetab-io/pagerfanta-adapt-php/tree/master.svg?style=svg)](https://circleci.com/gh/spacetab-io/pagerfanta-adapt-php/tree/master)
[![codecov](https://codecov.io/gh/spacetab-io/pagerfanta-adapt-php/branch/master/graph/badge.svg)](https://codecov.io/gh/spacetab-io/pagerfanta-adapt-php)This a simple adapters for [Pagerfanta](https://github.com/whiteoctober/Pagerfanta) library.
## Installation
```bash
composer require spacetab-io/pagerfanta-adapt
```## Usage
Basic:
```php
use Spacetab\PagerfantaAdapt\PaginatePdoAdapter;
use Pagerfanta\Pagerfanta;$adapter = new PaginatePdoAdapter(new PDO('dsn'), 'tableName');
$pagerfanta = new Pagerfanta($adapter);```
## Depends
* \>= PHP 7.4
* Composer for install package## Adapters list
* `Spacetab\PagerfantaAdapt\BasePdoAdapter.php`
* `Spacetab\PagerfantaAdapt\FluentPdoAdapter.php`
* `Spacetab\PagerfantaAdapt\PaginatePdoAdapter.php`## License
The MIT License
Copyright © 2020 spacetab.io, Inc. https://spacetab.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.