Recommend this page to a friend! |
Download .zip |
Info | Documentation | Screenshots | View files (14) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 156 | All time: 8,995 This week: 164 |
Version | License | PHP version | Categories | |||
worldclock 1.0.0 | Custom (specified... | 5 | HTML, PHP 5, Time and Date |
Description | Author | |
This package can display the time in different time zones. |
A Laravel Nova card to display world clock
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/world-clock
Add the below to app/Providers/NovaServiceProvder.php
public function card()
{
return [
(new WorldClock())
->timezones([
'Asia/Tokyo',
'Asia/Dubai',
'America/new_york',
'America/los_angeles',
]),
];
}
<img src="https://raw.githubusercontent.com/naifalshaye/worldclock/master/screenshots/screenshot.png" width="350">
Add a different format to the constructor, see http://php.net/manual/en/function.date.php for available formatting options.
For example: 24-hour formatting:
public function card()
{
return [
(new WorldClock('H:i'))
->timezones([
'Asia/Tokyo',
'Asia/Dubai',
'America/new_york',
'America/los_angeles',
]),
];
}
naif@naif.io
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
dist (2 directories) | ||||
resources (2 directories) | ||||
routes (1 file) | ||||
src (2 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
mix-manifest.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
webpack.mix.js | Data | Auxiliary data |
Files | / | src |
File | Role | Description |
---|---|---|
CardServiceProvider.php | Class | Class source |
WorldClock.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.