PHPackages                             rafaelwendel/ci4tablemaker - 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. [Templating &amp; Views](/categories/templating)
4. /
5. rafaelwendel/ci4tablemaker

ActiveLibrary[Templating &amp; Views](/categories/templating)

rafaelwendel/ci4tablemaker
==========================

A helper library for the CodeIgniter 4 framework designed to extend the capabilities of the native (View) Table class.

0.0.1(2mo ago)20MITPHPPHP ^8.0

Since May 24Pushed 2mo agoCompare

[ Source](https://github.com/rafaelwendel/CI4TableMaker)[ Packagist](https://packagist.org/packages/rafaelwendel/ci4tablemaker)[ Docs](https://github.com/rafaelwendel/CI4TableMaker)[ RSS](/packages/rafaelwendel-ci4tablemaker/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CI4TableMaker
=============

[](#ci4tablemaker)

**CI4TableMaker** is a helper library for the **CodeIgniter 4** framework designed to extend the capabilities of the native `CodeIgniter\View\Table` class.

It simplifies the task of dynamically injecting action columns (such as "Edit", "Delete", or custom buttons) into HTML tables. It features support for **conditional action links per row** (e.g., showing a button only if the user is an Admin) and **dynamic placeholder substitution** for database columns in URLs.

---

🚀 Installation
--------------

[](#-installation)

Add the package to your CodeIgniter 4 project using Composer:

```
composer require rafaelwendel/ci4tablemaker
```

Note

If you are using the class directly in your project's `app/Libraries/` folder without Composer, you can import it using the local namespace `use App\Libraries\TableMaker;`. If you installed the package via Composer, import it using the package namespace: `use CI4TableMaker\TableMaker;`.

---

🛠️ How to Use
-------------

[](#️-how-to-use)

### 1. Basic Usage

[](#1-basic-usage)

In your Controller, fetch your users' dataset (with columns `id`, `name`, and `profile`), define the action links, and send the helper instance to your View.

```
