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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Documentation

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 default time-zone attribute. 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

License

MIT. Dependency: @github/relative-time-element (MIT).


All versions of filament-relative-time with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
filament/filament Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package relisiuol/filament-relative-time contains the following files

Loading the files please wait ...