PHPackages                             xentixar/dynamic-table - 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. xentixar/dynamic-table

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

xentixar/dynamic-table
======================

v1.0.2(2mo ago)05MITPHP

Since May 11Pushed 2mo agoCompare

[ Source](https://github.com/xentixar/dynamic-table)[ Packagist](https://packagist.org/packages/xentixar/dynamic-table)[ RSS](/packages/xentixar-dynamic-table/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Dynamic Table
=============

[](#dynamic-table)

`xentixar/dynamic-table` is a Filament package that adds dynamic table behavior.

Features
--------

[](#features)

- Adds `Table::liveSelection()` macro for reactive selection syncing.
- Supports optional Livewire callback method execution on selection changes.
- Registers on both Filament Tables and Archilex Advanced Tables (if installed).

Requirements
------------

[](#requirements)

- PHP 8.2+
- Filament Tables `^4.0 || ^5.0`
- Illuminate Support `^11.0 || ^12.0 || ^13.0`

Installation
------------

[](#installation)

Install with Composer:

```
composer require xentixar/dynamic-table
```

The package uses Laravel package discovery, so the service provider is auto-registered.

Quick Start
-----------

[](#quick-start)

Apply `liveSelection()` on your table definition:

```
use Filament\Tables\Table;

public static function table(Table $table): Table
{
    return $table
        ->liveSelection();
}
```

Usage
-----

[](#usage)

### 1) Basic usage

[](#1-basic-usage)

```
public static function table(Table $table): Table
{
    return $table->liveSelection();
}
```

### 2) Conditional enable/disable

[](#2-conditional-enabledisable)

```
public static function table(Table $table): Table
{
    return $table->liveSelection(
        condition: auth()->user()?->can('bulkSelectUsers') ?? false,
    );
}
```

### 3) Use custom Livewire property

[](#3-use-custom-livewire-property)

```
public static function table(Table $table): Table
{
    return $table->liveSelection(
        livewireProperty: 'selectedUsers',
    );
}
```

### 4) Trigger a Livewire method on selection change

[](#4-trigger-a-livewire-method-on-selection-change)

```
public static function table(Table $table): Table
{
    return $table->liveSelection(
        livewireMethod: 'onSelectionChanged',
    );
}

public function onSelectionChanged(
    array $selectedRecords,
    array $deselectedRecords,
    bool $isTrackingDeselectedRecords,
): void {
    // Your logic here
}
```

If `livewireMethod` is not provided, the component refreshes automatically.

API Reference
-------------

[](#api-reference)

- `condition` (`bool`, default: `true`)
    - Enable or disable live selection behavior.
- `livewireProperty` (`string`, default: `selectedTableRecords`)
    - Livewire property used for current selection state.
- `livewireMethod` (`?string`, default: `null`)
    - Optional Livewire method called when selection changes.
    - Receives `(array $selectedRecords, array $deselectedRecords, bool $isTrackingDeselectedRecords)`.

Troubleshooting
---------------

[](#troubleshooting)

- `Method liveSelection does not exist`:
    - Run `composer dump-autoload` and clear app caches (`php artisan optimize:clear`).
- Callback not firing:
    - Ensure the method name in `livewireMethod` matches exactly and is `public`.
- Selection state not where expected:
    - Verify the `livewireProperty` name matches your component property.

License
-------

[](#license)

MIT

See [LICENSE](LICENSE) for full text.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance86

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

3

Last Release

74d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/152050438?v=4)[xentixar](/maintainers/xentixar)[@xentixar](https://github.com/xentixar)

---

Top Contributors

[![xentixar](https://avatars.githubusercontent.com/u/152050438?v=4)](https://github.com/xentixar "xentixar (6 commits)")

### Embed Badge

![Health badge](/badges/xentixar-dynamic-table/health.svg)

```
[![Health](https://phpackages.com/badges/xentixar-dynamic-table/health.svg)](https://phpackages.com/packages/xentixar-dynamic-table)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[promethys/revive

A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.

163.1k1](/packages/promethys-revive)

PHPackages © 2026

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