okvee/pagination

PHP Pagination

Installs: 3

Dependents: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

v2.0.1 2015-11-12 12:57 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.