定制 hkchai/laravel-foundation 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hkchai/laravel-foundation

最新稳定版本:1.3.3

Composer 安装命令:

composer require hkchai/laravel-foundation

包简介

Foundation 5 components for Laravel 5.1. For now only Pagination is supported

README 文档

README

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'])) !!}

统计信息

  • 总下载量: 69
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-13