| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 237 | All time:  8,070 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| masnathan-pagination 1.0.0 | MIT/X Consortium ... | 5.3 | HTML, PHP 5 | 
| Description | Author | |
| This package can get pagination links for listings split in pages. | 
Lightweight and easy to use pagination library
Via Composer
$ composer require masnathan/pagination
use MASNathan\Pagination\Pagination;
$pager = new Pagination($totalPages, $boundaries, $around, $currentPage);
foreach ($pager->getPages() as $pageLabel) {
    echo sprintf('<a href="/list/page/%s">%s</a>', $pageLabel, $pageLabel);
}
You can also check the `MASNathan\Pagination\Html\Pagination` for a html builder, it's possible to extend it as well, check the Bootstrap class.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email andre.r.flip@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
|  Files (10) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (1 file, 1 directory) | ||||
|  tests (1 file) | ||||
|    CHANGELOG.md | Data | Documentation | ||
|    composer.json | Data | Auxiliary data | ||
|    CONTRIBUTING.md | Data | Documentation | ||
|    LICENSE.md | Lic. | License text | ||
|    phpunit.xml.dist | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (10) | / | src | / | Html | 
| File | Role | Description | 
|---|---|---|
|  Bootstrap.php | Class | Class source | 
|  Pagination.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | masnathan-pagination-2015-06-17.zip 7KB | 
|  | masnathan-pagination-2015-06-17.tar.gz 5KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.
| Related pages | 
| Github Repository |