2017 © Pedro Peláez
 

library foundation-pagination

ZURB Foundation pagination slider for Laravel 5

image

eduard44/foundation-pagination

ZURB Foundation pagination slider for Laravel 5

  • Tuesday, August 18, 2015
  • by etcinit
  • Repository
  • 2 Watchers
  • 5 Stars
  • 2,075 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

foundation-pagination

This Laravel 5 package provides a FoundationPresenter class for generating Foundation-themed pagination in your applications., (*1)

This will probably not work with Laravel 4. For the Laravel 4 version see the original project: https://github.com/binarix/Laravel-Foundation-Pagination, (*2)

Changes

v3.0.0: Mainly cleaning up the code in general: Instead of relying on things like string concatenation or sprintf, the library now uses etcinit/nucleus's view component, which takes care of properly escaping the HTML output of the paginator when needed., (*3)

Additionally, a SimpleFoundationPresenter class is now available. It performs the same function as it's Bootstrap counterpart in Laravel, (*4)

v2.0.0: Adds support for Laravel 5., (*5)

Installation

WARNING: Version v3.0.0 hasn't been released yet. The instructions below might not work properly. For a stable release, please use v2.0.0., (*6)

The current release (v3.0.0) supports the following versions of Laravel, Lumen and Illuminated:, (*7)

    "laravel/framework": "~5.0",
    "laravel/framework": "~5.1",
    "lumen/framework": "~5.0",
    "lumen/framework": "~5.1",
    "chromabits/illuminated": "dev-master",

To include in in your project, simple use composer:, (*8)

$ cd /path/to/project
$ composer require chromabits/foundation-pagination

Usage

Since Laravel 5.0.7, we can replace the built-in bootstrap presenter this way:, (*9)

use Chromabits\Pagination\FoundationPresenter;

// To be set in a service provider or wherever
Paginator::presenter(function($paginator)
{
    return new FoundationPresenter($paginator);
});

If you wish to replace it manually, you have to instantiate the presenter every time you wish to render pagination:, (*10)

use App\Models\Post;
use Chromabits\Pagination\FoundationPresenter;

$paginator = Post::query()->paginate();

$html = $paginator->render(new FoundationPresenter($paginator));

For more information on Pagination with Laravel 5, please check out the docs at http://laravel.com/docs/pagination, (*11)

The Versions

18/08 2015

dev-master

9999999-dev

ZURB Foundation pagination slider for Laravel 5

  Sources   Download

MIT

The Requires

 

by Eduardo Trujillo

12/02 2015

dev-stable

dev-stable

ZURB Foundation pagination slider for Laravel 5

  Sources   Download

MIT

The Requires

 

by Eduardo Trujillo

12/02 2015

2.0.0

2.0.0.0

ZURB Foundation pagination slider for Laravel 5

  Sources   Download

MIT

The Requires

 

by Eduardo Trujillo

03/10 2014

1.1.0

1.1.0.0

Provides Zurb Foundation styled pagination slider HTML markup to Laravel 5

  Sources   Download

MIT

The Requires

 

by Jia Miew (John) Tan
by Eduardo Trujillo

24/10 2013

1.0.0

1.0.0.0

Provides Zurb Foundation styled pagination slider HTML markup to Laravel4

  Sources   Download

The Requires

 

by Jia Miew (John) Tan