PHPackages                             ashrafakl/yii2-locale - 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. ashrafakl/yii2-locale

ActiveYii2-extension[Localization &amp; i18n](/categories/localization)

ashrafakl/yii2-locale
=====================

The yii2-locale extension represents the data relevant to a locale such as countries, languages, and orientation.

v1.0.3(9y ago)0458MITPHP

Since Apr 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ashrafakl/yii2-locale)[ Packagist](https://packagist.org/packages/ashrafakl/yii2-locale)[ Docs](https://github.com/ashrafakl/yii2-locale)[ RSS](/packages/ashrafakl-yii2-locale/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

yii2-locale
===========

[](#yii2-locale)

Locale class represents the data relevant to a locale such as countries, languages, and orientation.

This class uses and depend on the PHP intl extension.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ashrafakl/yii2-locale "~1.0.3"

```

or add

```
"ashrafakl/yii2-locale": "~1.0.3"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed then add this to your application configuration:

```

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

4

Last Release

3356d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3945609?v=4)[Ashraf Akl](/maintainers/ashrafakl)[@ashrafakl](https://github.com/ashrafakl)

---

Top Contributors

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

---

Tags

languagescountriesyii2extensionlocaleorientationcharacters orientation

### Embed Badge

![Health badge](/badges/ashrafakl-yii2-locale/health.svg)

```
[![Health](https://phpackages.com/badges/ashrafakl-yii2-locale/health.svg)](https://phpackages.com/packages/ashrafakl-yii2-locale)
```

###  Alternatives

[codemix/yii2-localeurls

Automatic locale/language management for URLs.

4051.3M30](/packages/codemix-yii2-localeurls)[lajax/yii2-translate-manager

Translation management extension for Yii 2

220590.7k13](/packages/lajax-yii2-translate-manager)[omgdef/yii2-multilingual-behavior

Port of the yii-multilingual-behavior for yii

143179.8k9](/packages/omgdef-yii2-multilingual-behavior)[cetver/yii2-languages-dispatcher

Sets the web-application language for the Yii framework 2.0

1030.4k](/packages/cetver-yii2-languages-dispatcher)[macmotp/locale

A curated library to handle locale in PHP

507.8k](/packages/macmotp-locale)[lav45/yii2-translated-behavior

This extension allows you to quickly and simple enough to add translations for any ActiveRecord models.

3742.5k](/packages/lav45-yii2-translated-behavior)

PHPackages © 2026

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