gerenuk / filament-utc-dts
This package adds a UTC time indicator to your filament panel.
Fund package maintenance!
gerenuk
Installs: 1 533
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
Filament UTC DTS
This package adds a UTC indicator badge to your Filament panel.
Table of Contents
- Introduction
- Version Compatibility
- Installation
- Usage
- Testing
- Screenshots
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
Version Compatibility
Plugin | Filament | Laravel | PHP |
---|---|---|---|
1.x | 3.x | 10.x | 8.x |
1.x | 3.x | 11.x | 8.2|8.3 |
1.x | 3.x | 12.x | 8.4 |
Installation
You can install the package via composer:
composer require gerenuk/filament-utc-dts
You can publish the config file with:
php artisan vendor:publish --tag="filament-utc-dts-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-utc-dts-views"
This is the contents of the published config file:
return [ /* * The Carbon format which should be used to display the UTC timestamp. */ 'format' => 'd M Hi\Z', /* * Whether the component should poll every second to keep the time synced. */ 'should_poll' => true, ];
Usage
You first need to register the plugin with Filament. This can be done inside of your PanelProvider
, e.g. AdminPanelProvider
.
<?php namespace App\Providers\Filament; use Filament\Panel; use Filament\PanelProvider; use Gerenuk\FilamentUtcDts\FilamentUtcDtsPlugin; class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel { return $panel // ... ->plugins([FilamentUtcDtsPlugin::make()]); } }
Testing
composer test
Screenshots
UTC Indicator
UTC Indicator & Date
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.