PHPackages                             ledgr/localefacade - 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. ledgr/localefacade

Abandoned → [symfony/intl](/?search=symfony%2Fintl)ArchivedLibrary[Localization &amp; i18n](/categories/localization)

ledgr/localefacade
==================

\[Deprecated\] OO wrapper to symfony/locale

1.0.1(12y ago)1164WTFPLPHPPHP &gt;=5.3.3

Since Feb 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hanneskod/localefacade)[ Packagist](https://packagist.org/packages/ledgr/localefacade)[ Docs](https://github.com/ledgr/localefacade)[ RSS](/packages/ledgr-localefacade/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

> **NOTE:** The symfony Locale component is deprecated since symfony 2.3, use the Intl component instead. LocaleFacade will not be updated as it is not necessary when using Intl.

> For more information see the Intl [documentation](http://symfony.com/doc/current/components/intl.html).

LocaleFacade \[deprecated\]
===========================

[](#localefacade-deprecated)

OO wrapper to [symfony/locale](https://github.com/symfony/Locale) (and the [Locale](http://www.php.net/manual/en/class.locale.php) class of the Intl extension)

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

[](#installation)

Install using [composer](http://getcomposer.org/)

```
composer require ledgr/localefacade

```

Usage
-----

[](#usage)

```
use ledgr\localefacade\LocaleFacade;

$l = new LocaleFacade('de');

// Prints 'Deutsch'
echo $l->getDisplayName();

// Prints 'Schweden'
echo $l->getDisplayCountries()['SE'];

$arr = array(
    'ü',
    'u',
    'ß',
    's'
);
$l->createCollator()->sort($arr);

// Prints 's, ß, u, ü'
print_r($arr);

// And all the other Locale methods...
```

Testing
-------

[](#testing)

To run the tests you must first install dependencies using composer.

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
$ phpunit

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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 ~210 days

Total

3

Last Release

4473d ago

Major Versions

0.1.0 → 1.0.02014-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0af6567c7f4f5518a422192675445464fdcf18acbc9459b3205da9fd446f8d0?d=identicon)[hanneskod](/maintainers/hanneskod)

![](https://avatars.githubusercontent.com/u/213371?v=4)[Mike Putnam](/maintainers/mikeputnam)[@mikeputnam](https://github.com/mikeputnam)

---

Top Contributors

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

---

Tags

intllocalesymfony locale

### Embed Badge

![Health badge](/badges/ledgr-localefacade/health.svg)

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

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k213.6M1.4k](/packages/symfony-intl)[aplus/language

Aplus Framework Language Library

2391.7M15](/packages/aplus-language)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8031.5k](/packages/skillshare-formatphp)[delight-im/i18n

Internationalization and localization for PHP

595.4k3](/packages/delight-im-i18n)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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