2017 © Pedro Peláez
 

library pager

A library to split results into multiple pages

image

lehatyapachkin/pager

A library to split results into multiple pages

  • Thursday, November 9, 2017
  • by lehatyapachkin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ISPager

Software License, (*1)

A library to split results into multiple pages, (*2)

Install

Via Composer, (*3)

``` bash $ composer require lehatyapachkin/pager, (*4)


## Usage ``` php $obj = new LTPager\DirPager( new LTPager\PagesList(), 'photos', 3, 2); echo "<pre>"; print_r($obj->getItems()); echo "</pre>"; echo "<p>$obj</p>";

``` php $obj = new LTPager\FilePager( new LTPager\ItemsRange(), 'largetextfile.txt'); echo ", (*5)

";
print_r($obj->getItems());
echo "
"; echo "

$obj, (*6)

";

``` php try { $pdo = new PDO( 'mysql:host=localhost;dbname=test', 'root', '', [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); $obj = new LTPager\PdoPager( new LTPager\ItemsRange(), $pdo, 'table_name'); echo "<pre>"; print_r($obj->getItems()); echo "</pre>"; echo "<p>$obj</p>"; } catch (PDOException $e) { echo "Can't connect to database"; }

License

The MIT License (MIT). Please see License File for more information., (*7)

pager

The Versions

09/11 2017

dev-master

9999999-dev https://github.com/lehatyapachkin/pager

A library to split results into multiple pages

  Sources   Download

MIT

The Requires

 

The Development Requires

by leha tyapachkin

pagination paginator pager