uams-web/aether-tables
| Install | |
|---|---|
composer require uams-web/aether-tables |
|
| Latest Version: | v0.2.0 |
| PHP: | ^8.4 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 13, 2026 |
| Links: | GitHub · Packagist |
Aether Tables
Table sanitizing and pasted-table handling for Statamic's editors, by UAMS Web Services. The package is uams-web/aether-tables, in the UAMSWeb\Aether\Tables\ namespace.
What it does
- The
sanitize_table_cellAntlers modifier, which renders a table cell through HTMLPurifier against a small inline allowlist (links and basic emphasis; everything else is stripped). - Pasted-table parsing: the
table_data_paste_triggertrigger turns pasted HTML, TSV or CSV into thetable_datavalue. - Spreadsheet import: the
table_data_importer_triggertrigger reads an uploaded spreadsheet asset intotable_data.
The Table set's template, script and styles belong to the site's theme and stay in the site.
Requirements
- PHP 8.4 or later
- Statamic 6.35 or later
Installation
composer require uams-web/aether-tables
Publish the configuration file to the host application's config/ directory with:
php artisan vendor:publish --tag=aether-tables-config
It merges into the tables config key. The settings are:
tables.cell_sanitizer.cache_path: where HTMLPurifier stores its compiled definitions (defaultstorage/app/htmlpurifier).tables.trigger_event: the class name of the event the host dispatches when a trigger field is activated in the Control Panel. The paste and import listeners listen for it. The event carriesentry,triggerHandleandformValuesproperties. The default isApp\Events\TriggerActivated.
Statamic runs only allowlisted modifiers on content data. The add-on adds sanitize_table_cell to statamic.antlers.allowedContentModifiers itself, so the host does not have to.
Development and release
docs/DEVELOPMENT.md: developing against a host application, and the commands.docs/SUBMISSION.md: the Packagist and Marketplace checklist.docs/DECISIONS.md: the decision log.
License
MIT. See LICENSE.
Related Packages
Control Panel form settings for Statamic: notification routing and conditions, c...
CSP-safe Alpine form JavaScript driver for Statamic public forms, with a $showFi...
Search for Statamic sites, part of the Aether ecosystem of UAMS Statamic add-ons...
Redirect rules for Statamic: a redirects global set served on the 404 path, rule...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v0.2.0 | ^8.4 | MIT | |
| v0.1.2 | ^8.4 | ||
| v0.1.1 | ^8.4 | ||
| v0.1.0 | ^8.4 |