interaction-design-foundation / nova-worldclock-card
A Laravel Nova card to display world clocks
Installs: 25 097
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 10
Forks: 1
Open Issues: 0
Requires
- php: >=8.0
- ext-json: *
- laravel/nova: ^4.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2022-06-13 12:18:00 UTC
README
A Laravel Nova card to display world clock.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require interaction-design-foundation/nova-worldclock-card
Usage
use InteractionDesignFoundation\WorldClockCard\WorldClock; public function cards() { return [ (new WorldClock()) ->timezones([ 'Asia/Dubai', 'America/New_York', 'Europe/Kiev', ]) ->timeFormat('h:i') // Optional, time format. Default is: 'h:i' ->updatePeriod(1000) // Optional, to set updating time period in millisecond. ->nightRange(22, 6) // Optional, to set range of night hours. Default is [19; 6). ->hideContinents() // Optional, hide continents from timezone-names. ->timezoneDescriptions([ // Optional, add text description to timezones. 'Asia/Dubai' => 'Yuto, Hana', 'America/New_York' => 'Mark', 'Europe/Kiev' => 'Slava, Ukraine', ]), ]; }
Changelog
Please see Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.