Download the PHP package fgsl/eyedatagrid without Composer

On this page you can find all versions of the php package fgsl/eyedatagrid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eyedatagrid

EyeDataGrid

Based on version 1.0 of class created by Mike Frank http://www.eyesis.ca Former source code: https://www.phpclasses.org/package/4951-PHP-Display-data-from-a-database-in-a-sortable-table.html

This component was built because former EyeDataGrid has not update since 2008 and presents fatal errors in current PHP environments.

About

This class can be used to display data from an SQL database in a sortable HTML table. It can execute a given SQL query and generate HTML and Javascript to display the data in an HTML table. The table listing can be sorted by clicking on the column header titles. Data grid tables can also be displayed using Ajax. Its creator, Mike, was not satisfied with available PHP data grid controls. He uses data grids on every web site that he developes. According him, they're great for displaying all kinds of data. He argues that developed his datagrid to suit all his needs and more.

Features

Files

Eyedatagrid.php

The main datagrid class

EyeMySQLAdap..php

Mysql wrapper class created by Mike in former project - an improvement is replacing it with another one

*ex.php** -Example datagrid

Create a file local.php in config folder from local.inc.php template and fill with database access parameters.

*ex.png**

Image of the example

sample data.sql

Sample data for playing around with (from examples).

Create a database from this script for running samples.

table.css

-The style layout for the datagrid table

Placeholder Variables

What is a placeholder in the datagrid control?

Column Types and Usage

A quick overview of the available column types.

TYPE_ONCLICK

Sets a "onclick" call on a cell value.

e.g:

$db->setColumnType('FirstName', EyeDataGrid::TYPE_ONCLICK, "alert('Hello?')");

TYPE_HREF

Sets a href link on a cell value.

e.g:

$db->setColumnType('FirstName', EyeDataGrid::TYPE_HREF, "http://www.google.com");

TYPE_DATE

Format a date.

e.g:

TYPE_IMAGE

Changes a column's values to a image.

e.g:

TYPE_ARRAY

Maps a value to a key in an array

TYPE_CHECK

Converts a cell to a checkmark when the value is "1", "true", "yes" or value matches 3rd passed value.

e.g:

TYPE_PERCENT

Converts a value to a percent as a whole number.

e.g:

TYPE_DOLLAR

Converts a value to the a currency. Always rounded to 2 decimal places.

e.g:

TYPE_CUSTOM

Convert value to a custom value.

e.g:

TYPE_FUNCTION

Sends a value (or values) to a user specified function.

e.g:


All versions of eyedatagrid with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fgsl/eyedatagrid contains the following files

Loading the files please wait ....