承接 styde/blade-pagination 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

styde/blade-pagination

最新稳定版本:5.1.2

Composer 安装命令:

composer require styde/blade-pagination

包简介

Laravel's pagination with Blade templating support

README 文档

README

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: https://github.com/StydeNet/blade-pagination-tests (it includes some automatic tests with phpunit).

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:

<?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.

统计信息

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

GitHub 信息

  • Stars: 71
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-21