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
Requires
- php: ^7.1
- container-interop/container-interop: ^1.2
- laminas/laminas-servicemanager: ^3.1
- laminas/laminas-stdlib: ^3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14.0
- laminas/laminas-modulemanager: ^2.7.2
- laminas/laminas-test: ^3.0.1
- php-coveralls/php-coveralls: ^2.1.0
- phpunit/phpunit: ^7.5.2
- psr/http-message: ^1.0.1
- psr/http-server-middleware: ^1.0.0
Suggests
- laminas/laminas-modulemanager: For Laminas
- psr/http-message: For Mezzio
- psr/http-server-middleware: For Mezzio
README
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:
- 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.