Giter VIP home page Giter VIP logo

zfcdatagrid's Introduction

Datagrid/Datatable module for Zend Framework 2

Master Branch Build Status Coverage Status Total Downloads Latest Stable Version Latest Unstable Version License

A datagrid for ZF2 where the data input and output can be whatever you want...:-)

Over 330 tests and 1000 assertions testing the stability currently!

If you need help, please use following ressources

If you want to help out on this project:

  • seek through the issues
  • documentation
  • ...any help

Features

  • Datasources: Doctrine2 (QueryBuilder + Collections), Zend\Db, PhpArray, ... (others possible)
  • Output types: jqGrid, Bootstrap table, PDF, Excel, console, ... (others possible)
  • different column types
  • custom formatting, type based formatting (string, date, number, array...)
  • column/row styling for all or based on value comparison
  • column filtering and sorting
  • external data can be included to the dataset (like gravator or any other)
  • pagination
  • custom toolbar / view
  • ...

Installation

(optional) Create a new ZF2 project

To get started with a ZF2 application, please see the Skeleton application

Get ZfcDatagrid

Install it with composer is easy

php composer.phar require thadafinser/zfc-datagrid:dev-master

(If you don't have composer: Download it as a zip from github and put in into vendor/ZfcDatagrid and make sure that autoloading works)

Add ZfcDatagrid to your config/application.config.php

Finally create the folder: data/ZfcDatagrid

Test if it works

####Browser####

Attention! Only PhpArray works out of the box! For Zend\Db\Sql\Select and Doctrine2 you need to install DoctrineORMModule (Doctrin2 creates the database for Zend\Db\Sql\Select)

PhpArray http://YOUR-PROJECT/zfcDatagrid/person/bootstrap

Doctrine2 http://YOUR-PROJECT/zfcDatagrid/personDoctrine2/bootstrap

Zend\Db\Sql\Select http://YOUR-PROJECT/zfcDatagrid/personZend/bootstrap

####Console#### If you just type php index.php a help for all commands will be shown

cd YOUR-PROJECT/public/
php index.php datagrid person
php index.php datagrid person --page 2
php index.php datagrid person --sortBys=age
php index.php datagrid person --sortBys=age,givenName --sortDirs=ASC,DESC

Screenshots

ScreenShot ScreenShot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.