met_mw/spagination

Simple pagination library for web-applications.

v1.0.0 2016-07-19 15:14 UTC

This package is not auto-updated.

Last update: 2024-12-16 07:09:30 UTC


README

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

SPagination

Simple independent library to create pagination in web-applications.

Install

composer require met_mw/spagination

Examples

Render

$Pagination = new Pagination();
$Pagination->setCount(100)
    ->setCountOnPage(10)
    ->setCurrentPageNumber(5)
    ->render();

Get as string

$Pagination = new Pagination();
$paginationHTML = $Pagination->setCount(100)
    ->setCountOnPage(10)
    ->setCurrentPageNumber(5)
    ->get();

License

The met-mw/SPagination package is open-sourced software licensed under the MIT license