Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stopsopa/paginator-test
https://github.com/stopsopa/paginator-test
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stopsopa/paginator-test
- Owner: stopsopa
- Created: 2020-04-03T20:53:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T23:38:48.000Z (about 1 year ago)
- Last Synced: 2024-10-05T00:09:00.443Z (about 1 month ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/stopsopa/paginator-test.svg?branch=v0.0.9)](https://travis-ci.org/stopsopa/paginator-test)
[![Coverage Status](https://coveralls.io/repos/github/stopsopa/paginator-test/badge.svg?branch=v0.0.9)](https://coveralls.io/github/stopsopa/paginator-test?branch=v0.0.9)
[![Latest Stable Version](https://poser.pugx.org/stopsopa/paginator-test/v/stable)](https://packagist.org/packages/stopsopa/paginator-test)
[![License](https://poser.pugx.org/stopsopa/paginator-test/license)](https://packagist.org/packages/stopsopa/paginator-test)
# DEPRECATED ???
Created in 2022 - quite old now and not maintained. Butt.... Due to it's simplicity I believe it could be still used 🤷Nothing to be ashamed here:
I used best tools available at a time and delivered what's needed quickly.
# Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Dev notes](#dev-notes)_(TOC generated using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
# Installation
composer require stopsopa/paginator-test
# Usage```php
getPage(3);var_dump($page->elements());
//array(3) {
// [0] => string(1) "g"
// [1] => string(1) "h"
// [2] => string(1) "i"
//}var_dump($page->pages());
//array(3) {
// [0] => array(2) {
// 'page' => int(2)
// 'current' => bool(false)
// }
// [1] => array(2) {
// 'page' => int(3)
// 'current' => bool(true)
// }
// [2] => array(2) {
// 'page' => int(4)
// 'current' => bool(false)
// }
//}
```see more: [test](tests/GeneralTest.php)
# Dev notes
Just follow Makefile... it should be quite self explanatory