zofe/datagrid 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

zofe/datagrid

Composer 安装命令:

composer require zofe/datagrid

包简介

Simple datagrid / datatable presenter for eloquent/laravel

README 文档

README

DataGrid is a simple presenter widget for database queries, models, or any generic Array. By default it produce Bootstrap 3 compatible output.

At this moment is built on Deficient (a subset of laravel components including eloquent and blade, plus burp router). The plan is to make it compatible also with laravel, as standard package.

It can

  • Paginate results
  • Sort results
  • Display results in a HTML Table (defining each column)
  • Define each column, row and cell (sorting links, formatting, etc.)
  • Customize view output including pagination style
  • Export results as CSV / Excel
  • Let you define url-semantic for sort/pagination segments or parameters (thanks to burp)

usage

    $grid = DataGrid::source(new User);
    $grid->add('id','ID',true)->style('width:100px');
    $grid->add('name','Name',true);
    $grid->paginate(5);

why not starting from laravel?

Because it can be used stand alone, and in any other framework.
It has really minimal dependencies.

Installation

install via composer

{
    "require": {
        "zofe/datagrid": "dev-master"
    }
}

Setup

To configure database, views, you must reference to Deficient
This is a small how-to

  • create minimum folders / configuration files
  • deploy datagrid views
  • deploy a front controller and a sample (optional, but suggested)
  $ php vendor/zofe/deficient/deficient setup:folders
  $ php vendor/zofe/datagrid/datagrid setup:views
  $ php vendor/zofe/datagrid/datagrid setup:router

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固