bupy7/zf-time-zone

This package is abandoned and no longer maintained. No replacement package was suggested.

A time zone module for Laminas and Mezzio.

2.0.0 2020-11-28 13:57 UTC

This package is auto-updated.

Last update: 2022-12-28 18:29:51 UTC


README

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 Laminas:

$ composer require laminas/zend-modulemanager "*"

Additional for Mezzio:

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

Usage

For Laminas:

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

For Mezzio:

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.