2017 © Pedro Peláez
 

library blade-pagination

Laravel's pagination with Blade templating support

image

styde/blade-pagination

Laravel's pagination with Blade templating support

  • Sunday, August 2, 2015
  • by sileence
  • Repository
  • 5 Watchers
  • 79 Stars
  • 8,343 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Laravel's 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), (*1)

There is another repository to quickly try/test this package: https://github.com/StydeNet/blade-pagination-tests (it includes some automatic tests with phpunit)., (*2)

Installation

To install through Composer:, (*3)

1 - Add the following instruction to the "require" option in your composer.json:, (*4)

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

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

2 - Add the Service Provider to the config/app.php file of your Laravel app:, (*7)

'Styde\BladePagination\ServiceProvider', (*8)

3 - To change the templates, please execute the following command in the console:, (*9)

php artisan vendor:publish, (*10)

4 - Then you can:, (*11)

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

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

There are 3 available options: bootstrap, foundation and materialize., (*13)

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), (*14)

Alternatively you can just copy the following code:, (*15)

<?php

/***
 * Choose from: bootstrap, foundation, materialize
 * or create your own theme inside resources/views/pagination/
 * If you create a theme for a popular CSS framework
 * Please submit a pull request to: https://github.com/styde/blade-pagination
 * Or send me the template to admin@styde.net
 */
return array(
    'theme' => 'bootstrap'
);

Create themes

You can create your own themes inside resources/views/pagination. Feel free to submit your theme via Pull Request or to admin@styde.net., (*16)

The Versions

02/08 2015

dev-master

9999999-dev http://github.com/StydeNet/blade-pagination

Laravel's pagination with Blade templating support

  Sources   Download

MIT

The Requires

 

pagination blade

02/08 2015

5.1.2

5.1.2.0 http://github.com/StydeNet/blade-pagination

Laravel's pagination with Blade templating support

  Sources   Download

MIT

The Requires

 

pagination blade

02/08 2015

5.1.1

5.1.1.0 http://github.com/StydeNet/blade-pagination

Laravel's pagination with Blade templating support

  Sources   Download

MIT

The Requires

 

pagination blade

21/06 2015

5.1

5.1.0.0 http://github.com/StydeNet/blade-pagination

Laravel's pagination with Blade templating support

  Sources   Download

MIT

The Requires

 

pagination blade