okvee/pagination

This package is abandoned and no longer maintained. The author suggests using the rundiz/pagination package instead.

PHP Pagination. Moved to https://packagist.org/packages/rundiz/pagination

Installs: 3

Dependents: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

v2.0.2 2016-04-25 03:49 UTC

README

PHP Pagination.

Latest Stable Version License

Example:

require_once '../Okvee/Pagination/Pagination.php';

use Okvee\Pagination\Pagination;

$config['base_url'] = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$config['per_page'] = $limit; // limit display per page.
$config['total_rows'] = count($data);

$pagination = new Pagination($config);
echo $pagination->createLinks();

More example is in tests folder.