PHP Classes

PHP World Clock: Display the time in different time zones

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 156 All time: 8,995 This week: 164Up
Version License PHP version Categories
worldclock 1.0.0Custom (specified...5HTML, PHP 5, Time and Date
Description 

Author

This package can display the time in different time zones.

It provides a card to use in Laravel applications that shows on a Web page the current time in one or more world time zones.

The list of time zones that it takes displays the time is configurable by passing an array with the names of those time zones.

Picture of Naif Alshaye
  Performance   Level  
Name: Naif Alshaye <contact>
Classes: 24 packages by
Country: Saudi Arabia Saudi Arabia
Innovation award
Innovation award
Nominee: 9x

Documentation

World Clock

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 naif/world-clock

Usage:

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">

Format Time ( optional )

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',
            ]),
      ];
  }

Credits

Abdullah Algethami

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

The MIT License (MIT). Please see License File for more information.


Screenshots  
  • screenshots/screenshot.png
  Files folder image Files  
File Role Description
Files folder imagedist (2 directories)
Files folder imageresources (2 directories)
Files folder imageroutes (1 file)
Files folder imagesrc (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file mix-manifest.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

  Files folder image Files  /  dist  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  dist  /  css  
File Role Description
  Accessible without login Plain text file card.css Data Auxiliary data

  Files folder image Files  /  dist  /  js  
File Role Description
  Accessible without login Plain text file card.js Data Auxiliary data

  Files folder image Files  /  resources  
File Role Description
Files folder imagejs (1 file, 1 directory)
Files folder imagesass (1 file)

  Files folder image Files  /  resources  /  js  
File Role Description
Files folder imagecomponents (1 file)
  Accessible without login Plain text file card.js Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  components  
File Role Description
  Accessible without login Plain text file Card.vue Data Auxiliary data

  Files folder image Files  /  resources  /  sass  
File Role Description
  Accessible without login Plain text file card.scss Data Auxiliary data

  Files folder image Files  /  routes  
File Role Description
  Accessible without login Plain text file api.php Aux. Auxiliary script

  Files folder image Files  /  src  
File Role Description
  Plain text file CardServiceProvider.php Class Class source
  Plain text file WorldClock.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:156
This week:0
All time:8,995
This week:164Up