| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 121 | All time: 9,494 This week: 64 | ||||
| Version | License | PHP version | Categories | |||
| eazy-table 1.0 | MIT/X Consortium ... | 5 | HTML, PHP 5 |
| Description | Author | |
This class can output HTML to display tables from array data. |
<html> |
A PHP library for making a table
Eazy Table is too easy to use. Its a basic PHP table maker library.
to use it at first you have to include table.php file in your desire place
require_once 'table.php';
after including the file you have to initialize the class
$tbl=new Table;
Then you are ready to use it.
For making html table you have to use make() method
> make($data[, $config]) >
- $data - is an array. and it contain two values header and data. header and data are the key of the values. Its fixed naming so you can not change the key name. - $config - is an array and its optional. If you want to change table attribute then you can define from it.
Now We define all data to the $data variable
$data=[
'header'=>['ID', 'Name', 'Department'],
'data'=>[
[2, 'Nahid', 'CSE'],
[3, 'Firoz', 'CSE'],
[4, 'Jannat', 'BBA'],
[5, 'Bijoy', 'CSE']
]];
and for the change table attributes we assign values in $conf array
$conf=['border'=>1,'width'=>200];
and finally we make the table by using
$tbl->make($data, $conf);
after using it, its look like this

thats it
Thank you :)
| File | Role | Description |
|---|---|---|
| Example | Example script | |
| Lic. | License text | |
| Doc. | Documentation | |
| Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.