PHP CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs PHP 7.1 Mar 30, 2018
src PHP 7.1 Mar 30, 2018
tests/phpunit/DawPhpPagination Optimize for Bootstrap Jan 20, 2018
.gitignore Move tests Aug 26, 2017
LICENSE.txt Edit license Mar 8, 2018
README.md Edit README Mar 30, 2018
composer.json PHP 7.1 Mar 30, 2018
composer.lock PHP 7.1 Mar 30, 2018
composer.phar a Feb 22, 2017
phpunit.xml Move tests Aug 26, 2017

README.md

DAW PHP Pagination - Library for paginate

Latest Stable Version License

DAW PHP Pagination is a Open Source PHP library of a simple pagination.

Paginate easily!

Author

Package developed by: Développeur PHP Freelance Developpeur Freelance

Simple example

<?php

$pagination = new Pagination();

$pagination->paginate($countElements);

$limit = $pagination->getLimit();
$offset = $pagination->getOffset();

// Here your listing of elements with a loop

echo $pagination->render();
echo $pagination->perPage();

Requirements

  • PHP >= 7.1

If you want an accounting with PHP 7.0, you can use version 1.1: DAW PHP Pagination 1.1

Documentation

  • The documentation is in folder "docs" of this package:

English | French

Installation

Installation via Composer:

php composer.phar require stephweb/daw-php-pagination 2.0.*

An example of an image result

With DAW PHP Pagination CSS:

DAW PHP Pagination example

With Bootstrap CSS:

DAW PHP Pagination example with Bootstrap

Contributing

Bugs and security Vulnerabilities

If you discover a bug or a security vulnerability within DAW PHP Pagination, please send a message to Stephen. Thank you. All bugs and all security vulnerabilities will be promptly addressed.

License

The DAW PHP Pagination is Open Source software licensed under the MIT license.