2017 © Pedro Peláez
 

library pager

A library to split results into multiple pages

image

igorsimdyanov/pager

A library to split results into multiple pages

  • Saturday, January 2, 2016
  • by igorsimdyanov
  • Repository
  • 1 Watchers
  • 1 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 15 % Grown

The README.md

ISPager

Software License, (*1)

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

Install

Via Composer, (*3)

$ composer require igorsimdyanov/pager

Usage

$obj = new ISPager\DirPager(
    new ISPager\PagesList(),
    'photos',
    3,
    2
);
echo '<pre>';
print_r($obj->getItems());
echo '</pre>';
echo "<p>$obj</p>";
$obj = new ISPager\FilePager(
    new ISPager\ItemsRange(),
    'largetextfile.txt');
echo '<pre>';
print_r($obj->getItems());
echo '</pre>';
echo "<p>$obj</p>";
try {
    $pdo = new PDO(
        'pgsql:host=localhost;dbname=test',
        'root'
    );
    $obj = new ISPager\PdoPager(
        new ISPager\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., (*4)

The Versions

02/01 2016

dev-master

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

A library to split results into multiple pages

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Igor Simdyanov

pagination paginator pager

02/01 2016

v1.0.1

1.0.1.0 https://github.com/igorsimdyanov/pager

A library to split results into multiple pages

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Igor Simdyanov

pagination paginator pager

02/01 2016

v1.0.0

1.0.0.0 https://github.com/igorsimdyanov/pager

A library to split results into multiple pages

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Igor Simdyanov

pagination paginator pager