PHPackages                             itsmelepassos/phpoo-timezone - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. itsmelepassos/phpoo-timezone

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

itsmelepassos/phpoo-timezone
============================

Atribua um fuso horário local sem a necessidade de alterar o arquivo php.ini

v1.1.0(4y ago)0168MITPHPPHP ^7.2|^8.0

Since Aug 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/itsmelepassos/phpoo-timezone)[ Packagist](https://packagist.org/packages/itsmelepassos/phpoo-timezone)[ RSS](/packages/itsmelepassos-phpoo-timezone/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHPOO-Timezone by Leandro Passos
================================

[](#phpoo-timezone-by-leandro-passos)

[![Maintainer](https://camo.githubusercontent.com/81db47733c3d1d73526c6c546abba4f08df07320952d8f77ba41fecd63738af9/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406974736d656c65706173736f732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/itsmelepassos)[![Source Code](https://camo.githubusercontent.com/c5ae605dc690feed11acc773c2aabbf17f12321da14044bc85746472760e23e3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6974736d656c65706173736f732f7068706f6f2d2d74696d657a6f6e652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/itsmelepassos/phpoo-timezone)[![PHP from Packagist](https://camo.githubusercontent.com/a7f4d88e327e05d74e1a8677ab431ca81dff40c96adb77921bd415ebd0669586/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6974736d656c65706173736f732f7068706f2d2d74696d657a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itsmelepassos/phpoo-timezone)[![Latest Version](https://camo.githubusercontent.com/130bf0c9e22afa645b7cc3cf8b7ab1ca249785a3651e467815f34bec94acf74c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6974736d656c65706173736f732f7068706f6f2d74696d657a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://github.com/itsmelepassos/phpoo-timezone/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/8535780215cfcdd919e0df1dd54d8d8a6dc80ea8daa05ddbc7967c75314a179d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6974736d656c65706173736f732f7068706f6f2d74696d657a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/itsmelepassos/phpoo-timezone)[![Quality Score](https://camo.githubusercontent.com/2cfb98eb3d362383067dbd6d6ed30d5ce2013b35b37cc0c4a9981373135e08d4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6974736d656c65706173736f732f7068706f6f2d74696d657a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/itsmelepassos/phpoo-timezone)[![Total Downloads](https://camo.githubusercontent.com/89b9866d375d8cd7c4eee8560b2aad002fe6e5b4ed4a2c8421510798560e573b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6974736d656c65706173736f732f7068706f6f2d74696d657a6f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itsmelepassos/phpoo-timezone)

###### EN: PHPOO-Timezone is a package that allows the developer to change the time zone in your software without having to change its server's php.ini file.

[](#en-phpoo-timezone-is-a-package-that-allows-the-developer-to-change-the-time-zone-in-your-software-without-having-to-change-its-servers-phpini-file)

PT-BR: PHPOO-Timezone é um pacote que permite que o desenvolvedor possa alterar o fuso horário em seu software sem a necessidade de se alterar o arquivo php.ini do seu servidor.

---

### Highlights/Destaques

[](#highlightsdestaques)

- EN: Simple installation

    - PT-BR: Instalação Simples
- EN: PSR-2 and PSR-4 ready

    - PT-BR: Pronto para os padrões PSR-2 e PSR-4
- EN: Installable via Composer

    - PT-BR: Instalável via Composer

---

#### EN: Before installing, make sure you have Composer 2.x installed (Composer 1.x is not supported)

[](#en-before-installing-make-sure-you-have-composer-2x-installed-composer-1x-is-not-supported)

PT-BR: Antes de instalar, certifique-se de estar com o Composer 2.x instalado (Composer 1.x não é suportado)

---

###### EN: How to install in my project? A: Insert this line below in your composer.json file, as a "require"

[](#en-how-to-install-in-my-project-a-insert-this-line-below-in-your-composerjson-file-as-a-require)

#### PT-BR: Como instalar em meu projeto? R: Insira esta linha abaixo em seu arquivo composer.json, como um "require"

[](#pt-br-como-instalar-em-meu-projeto-r-insira-esta-linha-abaixo-em-seu-arquivo-composerjson-como-um-require)

```
"itsmelepassos/phpoo-timezone": "^1.0"
```

###### EN: Or type this command in your terminal or bash

[](#en-or-type-this-command-in-your-terminal-or-bash)

#### PT-BR: Ou digite este comando em seu terminal ou bash

[](#pt-br-ou-digite-este-comando-em-seu-terminal-ou-bash)

```
composer require itsmelepassos/phpoo-timezone
```

---

Documentation/Documentação
--------------------------

[](#documentationdocumentação)

###### EN: There is an example file of how you can call Timezone directly in your index.php file in the "example" folder, or you can also refer to the code below to serve as an example.

[](#en-there-is-an-example-file-of-how-you-can-call-timezone-directly-in-your-indexphp-file-in-the-example-folder-or-you-can-also-refer-to-the-code-below-to-serve-as-an-example)

PT-BR: Há um arquivo de exemplo de como você pode chamar direto o Timezone em seu arquivo index.php na pasta "example", ou pode também consultar o código abaixo para servir como exemplo

```
