PHPackages                             zooxsmart/los-i18n - 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. zooxsmart/los-i18n

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

zooxsmart/los-i18n
==================

I18N middleware providing route and country, region and language lists in all languages

1.0.2(2y ago)010.6k↓12.5%MITPHPPHP ^8.2

Since May 1Pushed 2y agoCompare

[ Source](https://github.com/zooxsmart/los-i18n)[ Packagist](https://packagist.org/packages/zooxsmart/los-i18n)[ Docs](http://github.com/Lansoweb/LosI18n)[ GitHub Sponsors](https://github.com/Lansoweb)[ RSS](/packages/zooxsmart-los-i18n/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

LosI18n
=======

[](#losi18n)

Introduction
------------

[](#introduction)

This middleware provides list of Languages, Countries and Regions translated to all languages.

Requirements
------------

[](#requirements)

PHP 7.4 | 8.0 and any container-interopt compatible project.

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

[](#installation)

```
composer require zooxsmart/los-i18n

```

Optionally, copy the config file to your project.

I18n Data
---------

[](#i18n-data)

This module needs data from [los-i18n-data](https://github.com/zooxsmart/los-i18n-data.git). So you need either to add the module to you project:

### Adding the los-i18n-data

[](#adding-the-los-i18n-data)

```
composer require zooxsmart/los-i18n-data

```

### File format

[](#file-format)

There are 3 formats: php, json and csv. If you need to import the json file, it's located: vendor/zooxsmart/los-i18n-data/data//languages.json vendor/zooxsmart/los-i18n-data/data//countries.json vendor/zooxsmart/los-i18n-data/data//regions.json

Usage
-----

[](#usage)

### Language list

[](#language-list)

```
$languagesService = $sm->get('losi18n-countries');
// All languages translated to pt_BR
$languages = $countriesService->getAllLanguages('pt_BR');
// All languages in their native names
$languages = $countriesService->getNativeLanguages();
// Brazilian Portuguese in English
$language = $countriesService->getLanguage('pt_BR', 'en);
```

### Country list

[](#country-list)

```
$countriesService = $sm->get('losi18n-countries');
// All officially assigned countries translated to English
$countries = $countriesService->getAllCountries('en');
// All countries translated to English
$countries = $countriesService->getAllCountries('en', false);
// United States translated to Brazilian Portuguese
$country = $countriesService->getCountry('US','pt_BR');
```

### Region list

[](#region-list)

```
$regionsService = $sm->get('losi18n-regions');
$regions = $countriesService->getAllRegions('pt_BR');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~307 days

Total

4

Last Release

922d ago

PHP version history (2 changes)3.1.x-devPHP ^7.4 || ^8.0

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9155a672b863ca2243f6b3d69d61d55bf35ae8e421c1b4f1655293a34d0451ba?d=identicon)[talbuquerque](/maintainers/talbuquerque)

---

Top Contributors

[![Lansoweb](https://avatars.githubusercontent.com/u/2109813?v=4)](https://github.com/Lansoweb "Lansoweb (11 commits)")[![mariojrrc](https://avatars.githubusercontent.com/u/9058951?v=4)](https://github.com/mariojrrc "mariojrrc (3 commits)")[![talbuquerque](https://avatars.githubusercontent.com/u/20418669?v=4)](https://github.com/talbuquerque "talbuquerque (3 commits)")[![lebaz20](https://avatars.githubusercontent.com/u/5208251?v=4)](https://github.com/lebaz20 "lebaz20 (1 commits)")

---

Tags

i18nlanguagecountrylos

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zooxsmart-los-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/zooxsmart-los-i18n/health.svg)](https://phpackages.com/packages/zooxsmart-los-i18n)
```

###  Alternatives

[jackocnr/intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers

8.2k243.6k2](/packages/jackocnr-intl-tel-input)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)

PHPackages © 2026

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