PHPackages                             rinvex/languages - 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. rinvex/languages

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

rinvex/languages
================

Rinvex Languages is a simple and lightweight package for retrieving language details with flexibility. A whole bunch of data including name, native, iso codes, language family, language script, language cultures, and other attributes for the 180+ known languages worldwide at your fingertips.

v7.1.0(3y ago)32106.0k—0.5%15[3 PRs](https://github.com/rinvex/languages/pulls)8MITPHPPHP ^8.1.0

Since Jan 1Pushed 1y ago3 watchersCompare

[ Source](https://github.com/rinvex/languages)[ Packagist](https://packagist.org/packages/rinvex/languages)[ Docs](https://rinvex.com)[ RSS](/packages/rinvex-languages/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (22)Used By (8)

Rinvex Language
===============

[](#rinvex-language)

**Rinvex Language** is a simple and lightweight package for retrieving language details with flexibility. A whole bunch of data including name, native, iso codes, language family, language script, language cultures, and other attributes for the 180+ known languages worldwide at your fingertips.

[![Packagist](https://camo.githubusercontent.com/5db2db66e335aec0a7206f520522f54d7e9a79c97d7daa1636e7bb190c9e1765/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e7665782f6c616e6775616765732e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/rinvex/languages)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ae9eff48206a162ea9ef49998dc511c31e677e7ae5a37b542c175b2fd115c596/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72696e7665782f6c616e6775616765732e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rinvex/languages/)[![Travis](https://camo.githubusercontent.com/f61d0c58bc6a9c424d295b985c3db0c32e5845de9aa2e68d577565567e5ed854/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696e7665782f6c616e6775616765732e7376673f6c6162656c3d5472617669734349267374796c653d666c61742d737175617265)](https://travis-ci.org/rinvex/languages)[![StyleCI](https://camo.githubusercontent.com/0d160b31cebc1bf2d925d714c30d558f5e0197cce55671e7b94a51ba998ef911/68747470733a2f2f7374796c6563692e696f2f7265706f732f37373737323939302f736869656c64)](https://styleci.io/repos/77772990)[![License](https://camo.githubusercontent.com/72c83e907d8a5d5d134cdbe5085e92a135513028a05b753ef3e3e520e85d1cb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e7665782f6c616e6775616765732e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/rinvex/languages/blob/develop/LICENSE)

Usage
-----

[](#usage)

Install via `composer require rinvex/languages`, then use intuitively:

```
// Get single language
$english = language('en');

// Get language name: English
echo $english->getName();

// Get language native name: English
echo $english->getNativeName();

// Get language ISO 639-1 code: en
echo $english->getIso6391();

// Get language ISO 639-2 code: eng
echo $english->getIso6392();

// Get language ISO 639-3 code: eng
echo $english->getIso6393();

// Get language script details: {"name": "Latin","iso_15924": "Latn","iso_numeric": "215","direction": "ltr"}
echo $english->getScript();

// Get language script name: Latin
echo $english->getScriptName();

// Get language script ISO 15924 code: Latn
echo $english->getScriptIso15924();

// Get language script ISO numeric code: 215
echo $english->getScriptIsoNumeric();

// Get language script direction: ltr
echo $english->getScriptDirection();

// Get language family details: {"name": "Indo-European","iso_639_5": "ine","hierarchy": "ine"}
echo $english->getFamily();

// Get language family name: Indo-European
echo $english->getFamilyName();

// Get language family ISO 6395 code: ine
echo $english->getFamilyIso6395();

// Get language family hierarchy: ine
echo $english->getFamilyHierarchy();

// Get language scope: individual
echo $english->getScope();

// Get language type: living
echo $english->getType();

// Get language cultures: {"en-US": {"name": "English (United States)","native": "English (United States)"}, {...}}
echo $english->getCultures();

// Get language specific culture: {"name": "English (United States)","native": "English (United States)"}
echo $english->getCulture('en-US');

// Get all languages
$languages = languages();

// Get all language scripts
$language_scripts = language_scripts();

// Get all language families
$language_families = language_families();

// Get languages with where condition (language script: Latin)
$whereLanguages = \Rinvex\Language\LanguageLoader::where('script.name', 'Latin');
```

> **Notes:**
>
> - **Rinvex Language** is framework-agnostic, so it's compatible with any PHP framework whatsoever without any dependencies at all, except for the PHP version itself **^8.0.0**. Awesome, huh? 😃
> - **Rinvex Language** provides the global helpers for your convenience and for ease of use, but in fact it's just wrappers around the underlying `LanguageLoader` class, which you can utilize and use directly if you wish

Features Explained
------------------

[](#features-explained)

- Language data are all stored here: `resources/languages.json`.
- `name` - language english name
- `native` - language native name
- `iso_639_1` - two letter code ISO 639-1
- `iso_639_2` - three letter code ISO 639-2
- `iso_639_3` - three letter code ISO 639-3
- `script` - language script details
    - name: language script name
    - iso\_15924: language script ISO 15924 code
    - iso\_numeric: language script ISO numeric code
    - direction: language script writing direction
- `family` - language family details
    - name: language family name
    - iso\_639\_5: three-letter ISO 639-5 code
    - hierarchy: language family hierarchy
- `cultures` - list of language cultures
    - key: four-letter language culture code (iso\_639\_1-iso\_3166\_1)
    - value: culture object
        - name: language culture name
        - native: language culture native name
- `scope` - language scope (like individual or macrolanguage)
- `type` - language type (like living or ancient)

Changelog
---------

[](#changelog)

Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

Support
-------

[](#support)

The following support channels are available at your fingertips:

- [Chat on Slack](https://bit.ly/rinvex-slack)
- [Help on Email](mailto:help@rinvex.com)
- [Follow on Twitter](https://twitter.com/rinvex)

Contributing &amp; Protocols
----------------------------

[](#contributing--protocols)

Thank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).

Bug reports, feature requests, and pull requests are very welcome.

- [Versioning](CONTRIBUTING.md#versioning)
- [Pull Requests](CONTRIBUTING.md#pull-requests)
- [Coding Standards](CONTRIBUTING.md#coding-standards)
- [Feature Requests](CONTRIBUTING.md#feature-requests)
- [Git Flow](CONTRIBUTING.md#git-flow)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this project, please send an e-mail to [help@rinvex.com](help@rinvex.com). All security vulnerabilities will be promptly addressed.

About Rinvex
------------

[](#about-rinvex)

Rinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.

License
-------

[](#license)

This software is released under [The MIT License (MIT)](LICENSE).

(c) 2016-2022 Rinvex LLC, Some rights reserved.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.6% 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 ~135 days

Recently: every ~214 days

Total

18

Last Release

1113d ago

Major Versions

v2.0.1 → v3.0.02018-10-04

v3.0.1 → v4.0.02019-03-03

v4.1.2 → v5.0.02020-03-15

v5.0.3 → v6.0.02021-08-22

v6.0.1 → v7.0.02023-01-08

PHP version history (7 changes)v1.0.0PHP ^7.0.0

v2.0.0PHP ^7.1.3

v4.0.0PHP ^7.2.0

v5.0.0PHP ^7.4.0

v5.0.3PHP ^7.4.0 || ^8.0.0

v6.0.0PHP ^8.0.0

v7.0.0PHP ^8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e54af04bcacb96e00894621335f88df7ed9895b6cc245deffdc9830a21cfe29?d=identicon)[Omranic](/maintainers/Omranic)

---

Top Contributors

[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (140 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![Rattone](https://avatars.githubusercontent.com/u/7362607?v=4)](https://github.com/Rattone "Rattone (1 commits)")

---

Tags

languagephplocalizationlanguageSimplelocalelightweightFlexiblerinvexscriptsfamily

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rinvex-languages/health.svg)

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

###  Alternatives

[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)[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[codezero/laravel-localizer

Automatically detect and set an app locale that matches your visitor's preference.

50394.3k4](/packages/codezero-laravel-localizer)[rinvex/universities

Rinvex Universities is a simple and lightweight package for retrieving university details with flexibility. A whole bunch of data including name, country, state, email, website, telephone, address, and much more attributes for the 17k+ known universities worldwide at your fingertips.

6716.1k](/packages/rinvex-universities)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

3191.1k2](/packages/fisharebest-localization)

PHPackages © 2026

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