PHPackages                             rinvex/language - 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/language

Abandoned → [rinvex/languages](/?search=rinvex%2Flanguages)ArchivedLibrary[Localization &amp; i18n](/categories/localization)

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.

v2.0.2(7y ago)011.6k1MITPHPPHP ^7.1.3

Since Jan 1Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (1)

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.

⚠️ This package is **renamed** and now maintained at **[rinvex/languages](https://github.com/rinvex/languages)**, author suggests using the new package instead.

[![Packagist](https://camo.githubusercontent.com/a621332e44c06cde6bc9608f6ce7d0b036e459b6450def35a14970d14a1708f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e7665782f6c616e67756167652e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/rinvex/language)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8240a334c15c5fe5dd8ea9e416ac289e0ef176ebc3bc10d6f319fc7be431e809/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72696e7665782f6c616e67756167652e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rinvex/language/)[![Code Climate](https://camo.githubusercontent.com/3dad55c6a6ec7ce0ea1b1bb5abfc6b85dcf87ee84dba5e4ce29c2ee3a93a9d67/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f72696e7665782f6c616e67756167652e7376673f6c6162656c3d436f6465436c696d617465267374796c653d666c61742d737175617265)](https://codeclimate.com/github/rinvex/language)[![Travis](https://camo.githubusercontent.com/d4f212ec3ccac1e3c52a92d2f8c65a883302251983a146112d6e219ff83536ec/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696e7665782f6c616e67756167652e7376673f6c6162656c3d5472617669734349267374796c653d666c61742d737175617265)](https://travis-ci.org/rinvex/language)[![StyleCI](https://camo.githubusercontent.com/0d160b31cebc1bf2d925d714c30d558f5e0197cce55671e7b94a51ba998ef911/68747470733a2f2f7374796c6563692e696f2f7265706f732f37373737323939302f736869656c64)](https://styleci.io/repos/77772990)[![License](https://camo.githubusercontent.com/ea07ae502646de68ca23e79d2a658c4b1b7161365b536641fe53fba0948f561b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e7665782f6c616e67756167652e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/rinvex/language/blob/develop/LICENSE)

Usage
-----

[](#usage)

Install via `composer require rinvex/language`, 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 **^7.1.3**. 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](http://chat.rinvex.com)
- [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-2018 Rinvex LLC, Some rights reserved.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

2788d ago

Major Versions

v1.1.0 → v2.0.02018-02-18

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

v2.0.0PHP ^7.1.3

### 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 (66 commits)")

---

Tags

laravellocalizationlanguageSimplelocalelightweightFlexiblerinvexscriptsfamily

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

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

32106.0k8](/packages/rinvex-languages)[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)[codezero/laravel-localizer

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

50394.3k4](/packages/codezero-laravel-localizer)[opgginc/codezero-laravel-localized-routes

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

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[awes-io/localization-helper

Package for convenient work with Laravel's localization features

3527.1k4](/packages/awes-io-localization-helper)

PHPackages © 2026

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