PHPackages                             styde/blade-pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. styde/blade-pagination

ActiveLibrary[Templating &amp; Views](/categories/templating)

styde/blade-pagination
======================

Laravel's pagination with Blade templating support

5.1.2(10y ago)7114.1k8[2 issues](https://github.com/StydeNet/blade-pagination/issues)MITPHPPHP &gt;=5.4.0

Since Jun 21Pushed 10y ago5 watchersCompare

[ Source](https://github.com/StydeNet/blade-pagination)[ Packagist](https://packagist.org/packages/styde/blade-pagination)[ Docs](http://github.com/StydeNet/blade-pagination)[ RSS](/packages/styde-blade-pagination/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel's pagination with Blade templating support.
===================================================

[](#laravels-pagination-with-blade-templating-support)

This package is compatible with Laravel 5.0 and Laravel 5.1 (but if you are using Laravel 5.0 you should update to 5.1 it takes 20 minutes or so)

There is another repository to quickly try/test this package:  (it includes some automatic tests with phpunit).

Installation
------------

[](#installation)

To install through *Composer*:

1 - Add the following instruction to the "require" option in your composer.json:

`"styde/blade-pagination": "5.1.*@dev"` and execute `composer update` in the console, inside the project's folder.

Or execute `composer require styde/blade-pagination:5.1.*@dev` in the console, inside the project's folder.

2 - Add the Service Provider to the `config/app.php` file of your Laravel app:

`'Styde\BladePagination\ServiceProvider'`

3 - To change the templates, please execute the following command in the console:

`php artisan vendor:publish`

4 - Then you can:

Change the theme (if necessary) in `config/blade-pagination.php`, example:

```
return array(
    'theme' => 'bootstrap'
);
```

There are 3 available options: `bootstrap`, `foundation` and `materialize`.

Change the templates in the `resources/views/blade-pagination` directory (make sure to edit or add a new template according to the theme specify in `config/blade-pagination.php`)

Alternatively you can just copy the following code:

```
