Download the PHP package relisiuol/filament-relative-time without Composer
On this page you can find all versions of the php package relisiuol/filament-relative-time. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download relisiuol/filament-relative-time
More information about relisiuol/filament-relative-time
Files in relisiuol/filament-relative-time
Package filament-relative-time
Short Description Filament 4 column powered by @github/relative-time-element.
License MIT
Homepage https://github.com/relisiuol/filament-relative-time
Informations about the package filament-relative-time
Filament Relative Time
A Filament v4 table column powered by @github/relative-time-element,
bundled locally with esbuild. It renders relative, absolute (Intl)
or duration values in the user's time zone (or a forced IANA time zone), with a
SSR fallback.
Since v1.1 the column reuses the native TextColumn view, so helpers like
alignment(), wrap(), copyable state, descriptions, etc. keep working while
the formatted value is swapped with <relative-time>.
Quick install
Enable the plugin on your panel:
Column usage
Need 12-hour output or no timezone suffix? Tweak datetimeIntl(), e.g. swap
'hour' => '2-digit' for 'hour' => 'numeric', add 'second' => '2-digit',
drop 'time-zone-name', or opt-in to 'date-style' / 'time-style' presets
if your target browsers support them.
Global defaults come from
config/filament-relative-time.php. Publish the config and set keys like'format-style' => 'short'or'prefix' => ''to apply them across every column, including the defaulttime-zoneattribute. All options are defined as null, to use default options from@github/relative-time-element.
Other attributes from the Web Component (e.g. prefix, format-style,
tense, no-title) are mapped with dedicated helpers or fall back to
elementAttributes([...]) for any edge-case attribute.
Quality & submission
- Hosted on GitHub, distributed via Packagist.
- Public documentation in
docs/. - No CDN; CSP-friendly (serve the local bundle from your domain).
License
MIT. Dependency: @github/relative-time-element (MIT).