PHPackages                             antonchaikin/f3-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. antonchaikin/f3-timezone

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

antonchaikin/f3-timezone
========================

Fat-Free Framework plugin to detect and set PHP timezone based on request headers, query, or body parameters.

v1.0.3(11mo ago)016MITPHPPHP &gt;=7.4

Since May 28Pushed 11mo agoCompare

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

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

f3-timezone
===========

[](#f3-timezone)

**Fat-Free Framework plugin to detect and set PHP timezone based on request data.**

This plugin checks for timezone information in the incoming request (`HEADERS`, `GET`, `POST`, `COOKIE`, `SESSION`) and sets it globally using `date_default_timezone_set()`.

💡 Installation
--------------

[](#-installation)

Require via Composer:

```
composer require antonchaikin/f3-timezone
```

Or add manually to `composer.json`:

```
"require": {
  "antonchaikin/f3-timezone": "^1.0"
}
```

🚀 Usage
-------

[](#-usage)

In your `index.php`:

```
use F3Timezone\TimezonePlugin;

$f3 = \Base::instance();

// Register the plugin
TimezonePlugin::register();

// Set timezone from request
$f3->updateTimezone();
```

📦 What it does
--------------

[](#-what-it-does)

- Searches for a timezone value in:
    - `HEADERS`
    - `GET`
    - `POST`
    - `COOKIE`
    - `SESSION`
- Accepts only valid [PHP timezones](https://www.php.net/manual/en/timezones.php)
- Automatically applies it using `date_default_timezone_set(...)`

✅ Example
---------

[](#-example)

If a client sends this header:

```
Timezone: Europe/Warsaw

```

The plugin will detect it and call:

```
date_default_timezone_set('Europe/Warsaw');
```

📝 License
---------

[](#-license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance51

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d12d07cb0b4a9c882178756622fa9c57f281836ff84f530d0129f3d6377811d?d=identicon)[AppTor](/maintainers/AppTor)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/antonchaikin-f3-timezone/health.svg)

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

###  Alternatives

[mirzabusatlic/laravel-schedule-monitor

Monitor the output of scheduled tasks in a database table

2869.8k](/packages/mirzabusatlic-laravel-schedule-monitor)[bornfreee/tactician-domain-events-bundle

Bundle to integrate Tactician Domain Events library with Symfony project

10138.6k](/packages/bornfreee-tactician-domain-events-bundle)

PHPackages © 2026

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