| Recommend this page to a friend! | 
| Info | Documentation | 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.
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Documentation | |||
| Data | Auxiliary data | |||
| Data | Documentation | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| / | src | / | Html | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Class source | 
|    | 
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. | 
| 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.
| Related pages | 
| Github Repository |