terabytesoftw/helper-timezone

Helper TimeZone

dev-master / 1.0.x-dev 2019-07-15 17:35 UTC

This package is auto-updated.

Last update: 2024-10-16 05:29:33 UTC


README

Helper TimeZone

Unstable Version Build Status Build Status Build Status Code Quality Code Intelligence Status Maintainability


DIRECTORY STRUCTURE:

config/             contains application configurations
src/                contains source files
tests/              contains tests codeception for the web application
vendor/             contains dependent 3rd-party packages

REQUIREMENTS:

  • The minimum requirement by this project template that your Web server supports:
    • PHP 7.2 or higher.

INSTALLATION:

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this extension using the following command composer:

composer require terabytesoftw/helper-timezone '^1.0@dev'

or add composer.json:

"terabytesoftw/helper-timezone":"^1.0@dev"

USAGE:

<?php

/**
 * @var array $timezone
 */
private $timezone;

use terabytesoft\helpers\TimeZone;

// Show list all time zone utc order timezone, name
$this->timezone = \yii\helpers\ArrayHelper::map(
    $this->timezone->getAll(), 
    'timezone',
    'name'
);

var_dump($this->timezone);

RUN TESTS CODECEPTION:

// download all composer dependencies root project
$ composer update --prefer-dist -vvv

// run all tests with code coverage
$ vendor/bin/codecept run unit --coverage-xml

WEB SERVER SUPPORT:

  • Apache.
  • Nginx.
  • OpenLiteSpeed.

DOCUMENTATION STYLE GUIDE:

Style CI Documentation PSR2.

LICENCE:

License YiiFramework Total Downloads StyleCI