PHPackages                             huglester/translated - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. huglester/translated

ActiveLibrary[Localization &amp; i18n](/categories/localization)

huglester/translated
====================

Helps to translate date() strings to different languages.

1397PHP

Since Sep 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/huglester/translated)[ Packagist](https://packagist.org/packages/huglester/translated)[ RSS](/packages/huglester-translated/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Helps to translate strings from date() function in php.

So for example, Friday becomes: Пятница, and vice-versa

### Instalation

[](#instalation)

```
include 'vendor/autoload.php';
```

```
$t = new Huglester\Translated\Date;

// $t->setFrom('en'); no need to change this if your language is english in php

// change the language we translate to
$t->setTo('ru'); // language we want translate to

// change the language we translate to
$t->tr(date('F'), 'ru'); // or pass as a second  parameter here

### Examples

$date = date('l, F d, Y h:i:s');

// Prints something like: Friday, March 29 2013 01:29:57
echo $date;

// Prints something like: Пятница, Март 29, 2013 01:29:57
echo $t->tr($date);

// Prints something like: Pentradienis, Kovas, 2013 01:29:57
echo $t->tr($date, 'lt');

#### Change mode:
$t->setMode('to');

// Prints something like: Пятница, Марта 29, 2013 01:29:57
echo $t->tr($date, 'ru');
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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/8a5fceb9a3bc5c133338c939ef39b8408e9ebefb4dfd7c8d614362fe6d16ff53?d=identicon)[huglester](/maintainers/huglester)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/huglester-translated/health.svg)

```
[![Health](https://phpackages.com/badges/huglester-translated/health.svg)](https://phpackages.com/packages/huglester-translated)
```

###  Alternatives

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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