hkchai/laravel-foundation

Foundation 5 components for Laravel 5.1. For now only Pagination is supported
69
Install
composer require hkchai/laravel-foundation
Latest Version:1.3.3
PHP:>=5.4.0
License:MIT
Last Updated:Sep 14, 2015
Links: GitHub  ·  Packagist
Maintainer: hkchai

Laravel-Foundation

Introduction

Foundation 5 modules for Laravel 5. This package requires Laravel and Foundation by Zurb as pre-requisites

This package aims to provide support for Foundation by Zurb, for use in Laravel.

This has been tested on:

  • Laravel Framework 5.1.16
  • Foundation 5.5.2

Availability

The following module(s) are available:

  • Pagination: SimplePagination

Pagination:

Installation

You need to have a working composer [https://getcomposer.org]

On the command line, issue composer require hkchai/laravel-foundation

How to use

If you are using BootStrap 3, in the blade.php file, assume your data is called $data, you should have {!! $data->render() !!}, which will render the pagination facility targeting BootStrap 3.

However the default presenter doesn't quite work for Foundation.

This package provides you with a presenter class that generates correct HTML for Foundation 5.

Again assuming your data is $data, here is how you invoke this package:

{!! $data->render(new LaravelFoundation\Pagination\SimpleFoundationFivePresenter($data, [options])) !!}

Optional Options

pagination-centered: boolean, default to false (i.e. not centered)

Example
{!! $data->render(new LaravelFoundation\Pagination\SimpleFoundationFivePresenter($data, ["pagination-centered"=>'true'])) !!}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP License
1.3.3 >=5.4.0 MIT
1.3.2 >=5.4.0 MIT
1.3.1 >=5.4.0 MIT
1.3.0 >=5.4.0 MIT
1.2.0 >=5.4.0 MIT