PHPackages                             humanized/php-locale-helpers - 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. humanized/php-locale-helpers

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

humanized/php-locale-helpers
============================

 Wrapper functions for getting internationalised labels leveraging the build-in PHP Locale libraries

026PHP

Since Oct 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Humanized/php-locale-helpers)[ Packagist](https://packagist.org/packages/humanized/php-locale-helpers)[ RSS](/packages/humanized-php-locale-helpers/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Locale Helpers
==================

[](#php-locale-helpers)

A collection of simple wrapper functions leveraging build-in PHP locale libraries

Features
--------

[](#features)

The library contains the following callable classes:

- Country
- Language
- Locale

Each class implements the following static functions:

FunctionExample InputExample Outputall()Country::all()string\[\]: \['AF','AX', 'AL',....\]exists()Country::exists('ps')boolean: truelabel()Country::label('ps','en')string: "Palestine"Dependencies
------------

[](#dependencies)

This package is for use with PHP versions 5.3 and higher and requires supplemental installation of the php-intl extension

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

[](#installation)

### Install Using Composer

[](#install-using-composer)

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

Either run

```
$ php composer.phar require humanized/php-locale-helpers "*"

```

or add

```
"humanized/php-locale-helpers": "*"

```

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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/1a07fca5b8f6fe268961a6744dbfd2175da8c785f5e26b2edaeb552f9bbcabd2?d=identicon)[jeffrey.geyssens](/maintainers/jeffrey.geyssens)

### Embed Badge

![Health badge](/badges/humanized-php-locale-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/humanized-php-locale-helpers/health.svg)](https://phpackages.com/packages/humanized-php-locale-helpers)
```

###  Alternatives

[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)
