PHPackages                             basemax/lmphp - 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. basemax/lmphp

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

basemax/lmphp
=============

LM PHP (Language management PHP) is a library for language management and multi-language support in the PHP-based application backends.

20103[1 issues](https://github.com/BaseMax/LMPHP/issues)PHP

Since Apr 1Pushed 7y ago3 watchersCompare

[ Source](https://github.com/BaseMax/LMPHP)[ Packagist](https://packagist.org/packages/basemax/lmphp)[ RSS](/packages/basemax-lmphp/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

LM PHP (Language management PHP)
================================

[](#lm-php-language-management-php)

Multi Language PHP
------------------

[](#multi-language-php)

Multi-language management and support on the php (web).

LMPHP Features
--------------

[](#lmphp-features)

- Easy
- Compact
- Useful

LM-PHP Functions
================

[](#lm-php-functions)

**word\_add**
-------------

[](#word_add)

Add a word to active language.

**Return :**Bool

**Parameters :**

- $name(name of the word)
- **Optional**, $value(value of the word)

word\_get
---------

[](#word_get)

Get a word from active language.

**Return :**The value of word.

**Parameters :**

- $name(name of the word)

word\_add\_to
-------------

[](#word_add_to)

Add a word to custom language.

**Return :**Bool

**Parameters :**

- $lang(language name)
- $name(name of the word)
- **Optional**, $value(value of the word)

language\_add
-------------

[](#language_add)

Add a new language.

**Return :**Bool

**Parameters :**

- $key(language name)

language\_remove
----------------

[](#language_remove)

Remove a language.

**Return :**Bool

**Parameters :**

- $key(language name)

language\_active
----------------

[](#language_active)

Activate a language.

**Return :**Bool

**Parameters :**

- $key(language name)

language\_current
-----------------

[](#language_current)

Get current active language.

**Return :**Name of the active language.

**Parameters :**None

language\_exists
----------------

[](#language_exists)

Check a language is exists or not.

**Return :**Bool

**Parameters :**

- $key (language name)

language
--------

[](#language)

Get list of the languages or list of the words of a language.

**Return :**Array

**Parameters :**

- **Optional**, $filter(language name)

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

[](#introduction)

This library is simple and lightweight and can be used for language management. **It called LM-PHP(LMPHP).**

This project started to be used for personal use. At the very beginning, the project was used in the infrastructure of the servers of a project in India. To be able to manage language and vocabulary more easily. (International projects)

With my decision, this project was put up for free.

History
-------

[](#history)

- **Version 0.1 (first)** : 2018 - 2018-12-01
- **Version 1.0** : 2018-12-01 - 2019-01-22
- **Version 1.1** : 2019-01-22

License
=======

[](#license)

LMPHP is licensed under the [GNU General Public License](https://github.com/BaseMax/LMPHP/blob/master/LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

classlanguagelanguage-managerlanguage-translationlanguageslmphpmulti-languagemulti-language-managementmulti-language-supportmultilangmultilanguagemultilanguage-supportmultilanguagueoopphptranslatetranslatertranslatestranslationtranslation-management

### Embed Badge

![Health badge](/badges/basemax-lmphp/health.svg)

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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