PHP code example of joaopaulolndev / filament-world-clock
1. Go to this page and download the library: Download joaopaulolndev/filament-world-clock library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joaopaulolndev / filament-world-clock example snippets
use Joaopaulolndev\FilamentWorldClock\FilamentWorldClockPlugin;
->plugins([
FilamentWorldClockPlugin::make()
->timezones([
'America/New_York',
'America/Sao_Paulo',
'Asia/Tokyo',
])
])
use Joaopaulolndev\FilamentWorldClock\FilamentWorldClockPlugin;
FilamentWorldClockPlugin::make()
->timezones([
'America/New_York',
'America/Sao_Paulo',
'Asia/Tokyo',
])
->setTimeFormat('H:i') //Optional time format default is: 'H:i'
->shouldShowTitle(false) //Optional show title default is: true
->setTitle('Hours') //Optional title default is: 'World Clock'
->setDescription('Different description') //Optional description default is: 'Show hours around the world by timezone'
->setQuantityPerRow(1) //Optional quantity per row default is: 1
->setColumnSpan('full') //Optional column span default is: '1/2'
->setSort(10)