terabytesoftw/helper-timezone

Helper TimeZone

安装: 105

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:yii2-extension

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

This package is auto-updated.

Last update: 2024-09-16 05:24:26 UTC


README

Helper TimeZone

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


目录结构

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

要求

  • 此项目模板的最低要求是您的Web服务器支持
    • PHP 7.2或更高版本。

安装

如果您没有 Composer,您可以按照 getcomposer.org 上的说明进行安装。

然后您可以使用以下命令安装此扩展:composer

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

或添加 composer.json

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

用法

<?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);

运行测试代码ception

// 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服务器

  • Apache。
  • Nginx。
  • OpenLiteSpeed。

文档风格指南

风格CI文档PSR2。

许可

License YiiFramework Total Downloads StyleCI