PHPackages                             fabianpankoke/mobile-device-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. fabianpankoke/mobile-device-timezone

ActiveNativephp-plugin

fabianpankoke/mobile-device-timezone
====================================

Read the device's current IANA timezone identifier from NativePHP Mobile apps.

v1.0.1(1mo ago)02↑2900%MITPHPPHP ^8.2

Since Jul 16Pushed 1mo agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (3)Used By (0)

Device Timezone Plugin for NativePHP Mobile
===========================================

[](#device-timezone-plugin-for-nativephp-mobile)

Reads the device's current IANA timezone identifier (e.g. `Europe/Vienna`) from a NativePHP Mobile app — the one piece of device info NativePHP core doesn't expose yet.

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

[](#installation)

```
composer require fabianpnke/mobile-device-timezone
php artisan vendor:publish --tag=nativephp-plugins-provider
php artisan native:plugin:register fabianpnke/mobile-device-timezone
php artisan native:plugin:list
```

This adds `\Fabianpnke\MobileDeviceTimezone\DeviceTimezoneServiceProvider::class` to your `plugins()` array. Rebuild the app (`native:run`) afterwards.

Usage
-----

[](#usage)

```
use Fabianpnke\MobileDeviceTimezone\Facades\DeviceTimezone;

$identifier = DeviceTimezone::get(); // e.g. "Europe/Vienna"

if ($identifier !== null) {
    $localNow = now($identifier);
}
```

`get()` returns `null` when the native bridge isn't available — off-device (tests, `php artisan tinker`, plain `php artisan serve`), or on the rare platform edge case where the OS can't resolve one.

### JavaScript (Vue/React/Inertia)

[](#javascript-vuereactinertia)

```
import { DeviceTimezone } from '@fabianpnke/mobile-device-timezone';

const identifier = await DeviceTimezone.get(); // e.g. "Europe/Vienna", or null
```

Platform Notes
--------------

[](#platform-notes)

PlatformSourceiOS`TimeZone.current.identifier`Android`TimeZone.getDefault().id`No permissions required on either platform.

Compatibility
-------------

[](#compatibility)

Requires `nativephp/mobile` `^3.2.1` or `^4.0`.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36986615?v=4)[Fabian Pankoke](/maintainers/fabianpnke)[@fabianpnke](https://github.com/fabianpnke)

---

Top Contributors

[![fabianpnke](https://avatars.githubusercontent.com/u/36986615?v=4)](https://github.com/fabianpnke "fabianpnke (3 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/fabianpankoke-mobile-device-timezone/health.svg)

```
[![Health](https://phpackages.com/badges/fabianpankoke-mobile-device-timezone/health.svg)](https://phpackages.com/packages/fabianpankoke-mobile-device-timezone)
```

###  Alternatives

[nativephp/mobile-starter

The skeleton application for NativePHP for Mobile.

273.9k](/packages/nativephp-mobile-starter)

PHPackages © 2026

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