terabytesoftw / helper-timezone
Helper TimeZone
dev-master / 1.0.x-dev
2019-07-15 17:35 UTC
Requires
- php: ^7.2.0
- oomphinc/composer-installers-extender: ^1.1
- yiisoft/yii2: ^2.0.20
Requires (Dev)
- codeception/c3: 2.*
- codeception/codeception: ^3.0
- dms/phpunit-arraysubset-asserts: ^0.1.0
- hiqdev/composer-config-plugin: ^1.0@dev
- monolog/monolog: *
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.1.0
This package is auto-updated.
Last update: 2024-09-16 05:24:26 UTC
README
Helper TimeZone
目录结构
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。