PHPackages                             donami/ctable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. donami/ctable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

donami/ctable
=============

Table management

v1.0(10y ago)018MITHTMLPHP &gt;=5.4

Since May 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/donami/cdialog)[ Packagist](https://packagist.org/packages/donami/ctable)[ Docs](http://bth.se)[ RSS](/packages/donami-ctable/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Travis build status](https://camo.githubusercontent.com/ad6f34318e339c5cd26d90cb76dc40a9ac56e4af21b96453a68efaff09eaa049/68747470733a2f2f7472617669732d63692e6f72672f646f6e616d692f637461626c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/donami/ctable)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c811361ae9bd718c4e2d7e2e03f7cb90ca68dc13af96205eb196d3168df7a428/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f6e616d692f637461626c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/donami/ctable/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/16137b64114b5ddc2416c1c556cfc0b44f0d429fe8070bb0ad0ad952dad3948c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f6e616d692f637461626c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/donami/ctable/?branch=master)

CTable - Table module for Anax
==============================

[](#ctable---table-module-for-anax)

CTable is a module for Anax used for creating HTML Tables in an easy manner.

How to:
-------

[](#how-to)

Install CTable by using composer:

```
composer require donami/ctable

```

Usage:
------

[](#usage)

### Create a HTML table from array

[](#create-a-html-table-from-array)

Use an array to create the table:

```
$di->set('HTMLTable', 'donami\CTable\CTable');

$data = array(
  array('First', 'Second', 'Third'),
  array('Fourth', 'Fifth', 'Sixth')
);

echo $app->HTMLTable->generate($data);
```

Will output:

```

    First
    Second
    Third

    Fourth
    Fifth
    Sixth

```

### One by one

[](#one-by-one)

This is useful when looping through data

```
$di->set('HTMLTable', 'donami\CTable\CTable');

$app->HTMLTable->create_row(array('First', 'Second', 'Third'));
$app->HTMLTable->create_row(array('Fourth', 'Fifth', 'Sixth'));
echo $app->HTMLTable->generate();
```

### Defining tags:

[](#defining-tags)

Used for customizing the style of the table.

Example: Set the background of the table to purple

```
$app->HTMLTable->defineTags(array('table_start' => ''));
```

Links: Packagist:

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e0ddd36ab1bca1da78e8035e2696aab043961f50d64837fd34e20008cea4d98?d=identicon)[donami](/maintainers/donami)

---

Top Contributors

[![donami](https://avatars.githubusercontent.com/u/8712037?v=4)](https://github.com/donami "donami (14 commits)")[![mosbth](https://avatars.githubusercontent.com/u/169550?v=4)](https://github.com/mosbth "mosbth (14 commits)")

---

Tags

educationtable

### Embed Badge

![Health badge](/badges/donami-ctable/health.svg)

```
[![Health](https://phpackages.com/badges/donami-ctable/health.svg)](https://phpackages.com/packages/donami-ctable)
```

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k288.4k1](/packages/wenzhixin-bootstrap-table)[nicolaskruchten/pivottable

Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.

4.4k223.4k1](/packages/nicolaskruchten-pivottable)[mottie/tablesorter

tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.

2.6k234.4k](/packages/mottie-tablesorter)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21362.6k](/packages/ramonrietdijk-livewire-tables)[nagarajanchinnasamy/subtotal

Subtotal.js is a JavaScript plugin for PivotTable.js. It renders subtotals of rows and columns with the ability to expand and collapse rows.

94134.7k](/packages/nagarajanchinnasamy-subtotal)[datatables.net/datatables.net

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is jQuery DataTables

59174.2k53](/packages/datatablesnet-datatablesnet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
