Download the PHP package desmart/pagination without Composer
On this page you can find all versions of the php package desmart/pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download desmart/pagination
More information about desmart/pagination
Files in desmart/pagination
Package pagination
Short Description Laravel pagination on steroids
License MIT
Informations about the package pagination
Overview
This package is an extension for Laravel4 pagination module.
It provides new functionalities:
- route based url generator
- helpers for template render
Installation
To composer.json add: "desmart/pagination": "1.2.*" and then run composer update desmart/pagination.
In app/config/app.php replace line 'Illuminate\Pagination\PaginationServiceProvider', with 'DeSmart\Pagination\PaginationServiceProvider',.
Compatibilty
This package should not break compatibility with Laravel pagination module.
Laravel 4.1
To use desmart/pagination with Laravel 4.1 switch to version 1.1.*.
Laravel 4.0
To use desmart/pagination with Laravel 4.0 switch to version 1.0.*.
Method overview
General usage
withQuery()- bind query parameters to url generator (by default query parameters are included). Works only for url generating from routes.withoutQuery()- don't bind query parametersroute($route[, array $parameters])- use given route for generating url to pages (it can be route name, or instance ofIlluminate\Routing\Route)useCurrentRoute()- use current (active) route for url generating
For templates
pagesProximity($proximity)- set pages proximitygetPagesRange()- get list of pages to show in template (includes proximity)canShowFirstPage()- check if can show first page (returnsTRUEwhen first page is not in list generated bygetPagesRange())canShowLastPage()- check if can show last page (returnsTRUEwhen last page is not in list generated bygetPagesRange())
Example usage
In controller
In view
License
This package is open-sourced software licensed under the MIT license
All versions of pagination with dependencies
illuminate/support Version 4.2.*
illuminate/pagination Version 4.2.*
illuminate/routing Version 4.2.*
