Skip to content
Time zone module for Zend Framework 3 & Zend Expressive.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test/Functional
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
composer.json
phpcs.php
phpunit.xml

README.md

zf-time-zone

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status

Module for applying time zone towards the application.

Installation

The preferred way to install this extension is through composer:

$ composer require bupy7/zf-time-zone "*"

to the require section of your composer.json file.

Additional for Zend Framework 3:

$ composer require zendframework/zend-modulemanager "*"

Additional for Zend Expressive:

$ composer require psr/http-message "*"
$ composer require psr/http-server-middleware "*"

Usage

For Zend Framework 3:

  1. Add Bupy7\Zf\TimeZone to module list.

For Zend Expressive:

1: Add Bupy7\Zf\TimeZone\ConfigProvider to your config project;

2: Add Bupy7\Zf\TimeZone\Middleware\BootstrapMiddleware to your middleware pipeline.

Next: Set your time zone in a local config:

'time_zone' => [
    'time_zone' => 'Europe/Moscow',
],

And profit!

License

zf-time-zone is released under the BSD 3-Clause License.

You can’t perform that action at this time.