PHPackages                             unilex6/time-formatter - 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. unilex6/time-formatter

ActiveLibrary

unilex6/time-formatter
======================

Time Formatter

020PHP

Since Oct 11Pushed 9y agoCompare

[ Source](https://github.com/unilex6/time-formatter)[ Packagist](https://packagist.org/packages/unilex6/time-formatter)[ RSS](/packages/unilex6-time-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Time Formatter
==============

[](#time-formatter)

Instalation
-----------

[](#instalation)

1. Add following line into `require` section in your `composer.json`:

```
    "require": {
        "unilex6/time-formatter": "dev-master"
    }
```

2. If you want to install package directly from GitHub, you need to add following line into `repositories` section in your `composer.json` to set up composer`s package source path:

```
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/unilex6/time-formatter"
        }
    ]
```

Basic Usage
-----------

[](#basic-usage)

```
$time = 1450224000; // 16th of December timestamp
TimeFormatter::time($time); // -> 16 дек в 03:00
TimeFormatter::time($time, ['locale' => TimeFormatter::LOCALE_EN]); // -> 16 dec in 03:00

$time = 1450224000; // Yesterday timestamp, for example
TimeFormatter::time($time); // -> Вчера в 03:00
TimeFormatter::time($time, ['locale' => TimeFormatter::LOCALE_EN]); // -> Yesterday at 03:00
```

@TODO: Extended docs

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f0f9ec370a19396a4e59f4a86521546a8cb8c645853cb1866b66d3b3074ded1?d=identicon)[unilex6](/maintainers/unilex6)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/unilex6-time-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/unilex6-time-formatter/health.svg)](https://phpackages.com/packages/unilex6-time-formatter)
```

PHPackages © 2026

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