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 1mo 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 27% 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

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.7k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M490](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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