Download the PHP package kmd/pagination without Composer
On this page you can find all versions of the php package kmd/pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kmd/pagination
More information about kmd/pagination
Files in kmd/pagination
Package pagination
Short Description Extend Laravel 4 basic Bootstrap Pagination
License MIT
Informations about the package pagination
Laravel 4 Extended Pagination
An extension to the default Laravel 4 Pagination for better flexibility and configuration.
Mimics default Laravel 4 pagination out of the box. Change config or language options to customize.
Created and maintained by Micheal Mand. Copyright © 2013. Licensed under the MIT license.
Installation
Add kmd/pagination
as a requirement to composer.json
:
Update composer:
Add the provider to your app/config/app.php
:
(Optional) Publish package config:
Usage and Configuration
Usage
This package sits on top of Laravel 4's Pagination, so use it the same way. Laravel 4's Pagination Docs.
Configuration
always_show
: Set totrue
to always show the paginator, even if there are no pages. Default:false
.show_first_last
: Set totrue
to show First/Last page links. Default:false
.align_simple
: Set totrue
to align the simple paginator links to the sides. Default:false
.classes
: Set the sliding paginator's classes. For example, to center the paginator:pagination pagination-centered
. See: Twitter Bootstrap Pagination Docs. Default:pagination
.slider
:prev_link_text
: Set the previous link text. Default:‹
.next_link_text
: Set the next link text. Default:›
.first_link_text
: Set the first link text. Default:« First
.last_link_text
: Set the last link text. Default:Last »
.
simple
:prev_link_text
: Set the previous link text. Default:← Previous
.next_link_text
: Set the next link text. Default:Next →
.
To change the pagination view, edit app/config/view.php
and change the pagination
value. Want to create your own? Model it after one of the views.