Download the PHP package kosinix/paginator without Composer
On this page you can find all versions of the php package kosinix/paginator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kosinix/paginator
More information about kosinix/paginator
Files in kosinix/paginator
Download kosinix/paginator
More information about kosinix/paginator
Files in kosinix/paginator
Vendor kosinix
Package paginator
Short Description A generic PHP class to split large data into smaller chunks for use in web apps
License MIT
Homepage https://github.com/kosinix/paginator
Package paginator
Short Description A generic PHP class to split large data into smaller chunks for use in web apps
License MIT
Homepage https://github.com/kosinix/paginator
Keywords paginator
Please rate this library. Is it a good library?
Informations about the package paginator
Paginator
A generic PHP class to split large data into smaller chunks for use in web apps.
Requirements
- PHP >= 5.3.3
Installation
Manual
- Download the zip file from the Github repository.
- Unpack the zip file and include the files in your project.
- Include the class in /src/:
Composer
Inside your project directory, open the command line and type:
Include the autoload.php found in vendor/:
Usage
Include the class and pass the required parameters
The constructor accepts the following parameters:
- total - The total number of records.
- current_page - The current page to display. Defaults to 1.
- per_page - The number of records in a page. Defaults to 10.
Terms are best explained by this image
Silex Service Provider
You can also create a service provider for paginator for use in Silex:
Then in your app:
In your controller:
Test
- Go to the project folder and run phpunit in the command line.
- You need to have phpunit installed globally.
License
- MIT
All versions of paginator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
The package kosinix/paginator contains the following files
Loading the files please wait ....