PHPackages                             ixnode/php-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. ixnode/php-timezone

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

ixnode/php-timezone
===================

PHP Timezone - This library converts different timezone strings.

0.1.25(1y ago)17.6k↓26.6%3MITPHPPHP ^8.0

Since Jun 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ixnode/php-timezone)[ Packagist](https://packagist.org/packages/ixnode/php-timezone)[ RSS](/packages/ixnode-php-timezone/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (27)Used By (3)

PHP Timezone
============

[](#php-timezone)

This library converts different timezone strings.

Usage
-----

[](#usage)

```
use Ixnode\PhpTimezone\Timezone;
```

### Get country code from given timezone.

[](#get-country-code-from-given-timezone)

```
print (new Timezone('Europe/Berlin'))->getCountryCode();
// (string) "DE"
```

### Get country name in english from given timezone.

[](#get-country-name-in-english-from-given-timezone)

```
print (new Timezone('Europe/Berlin'))->getCountryName();
// (string) "Germany"
```

### Get country name in german from given timezone.

[](#get-country-name-in-german-from-given-timezone)

```
use Ixnode\PhpTimezone\Constants\Locale

print (new Timezone('Europe/Berlin'))->getCountryName(Locale::DE_DE);
// (string) "Deutschland"
```

### Get some locale language names in different languages

[](#get-some-locale-language-names-in-different-languages)

```
use Ixnode\PhpTimezone\Constants\Locale
use Ixnode\PhpTimezone\Constants\LocaleTranslation

print LocaleTranslation::DE_DE[Locale::DE_DE];
// (string) "Deutsch (Deutschland)"
print LocaleTranslation::DE_DE[Locale::ES_ES];
// (string) "Alemán (Alemania)"
print LocaleTranslation::NN_NO[Locale::IT_IT];
// (string) "Norvegese nynorsk (Norvegia)"
```

etc.

### Get some language names in different languages

[](#get-some-language-names-in-different-languages)

```
use Ixnode\PhpTimezone\Constants\Language

print Language::DE['de'];
// (string) "Deutsch"
print Language::DE['sv'];
// (string) "Tyska"
print Language::SV['en'];
// (string) "Swedish"
```

etc.

Installation
------------

[](#installation)

```
composer require ixnode/php-timezone
```

```
vendor/bin/php-timezone -V
```

```
php-timezone 0.1.0 (12-19-2022 01:17:26) - Björn Hempel
```

Development
-----------

[](#development)

```
git clone git@github.com:ixnode/php-timezone.git && cd php-timezone
```

```
composer install
```

```
composer test
```

License
-------

[](#license)

This tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~1 days

Total

26

Last Release

541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b92095b1e1e279ccad060449bca0e21bf613b6e33796d878f7bfc212a4680bad?d=identicon)[ixnode](/maintainers/ixnode)

---

Top Contributors

[![bjoern-hempel](https://avatars.githubusercontent.com/u/5531245?v=4)](https://github.com/bjoern-hempel "bjoern-hempel (53 commits)")

---

Tags

phpconversiontimezone

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ixnode-php-timezone/health.svg)

```
[![Health](https://phpackages.com/badges/ixnode-php-timezone/health.svg)](https://phpackages.com/packages/ixnode-php-timezone)
```

###  Alternatives

[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14282.3k](/packages/dater-dater)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
