PHP Classes
elePHPant
Icontem

LMPHP: Support to multiple languages to PHP applications

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (14)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-03-31 (8 hours ago) RSS 2.0 feedStarStarStarStarStar 80%Total: 112 This week: 10All time: 9,029 This week: 37Up
Version License PHP version Categories
lmphp 1.1Custom (specified...5Localization, PHP 5, Text processing
Description Author

This class can be used to support to multiple languages to PHP applications.

It can take given texts in one or more languages and add them to internal arrays that have all the texts that an application needs to display in messages for their users.

The class allow selecting the currently active language, as well return specific texts for the selected language to be used by the application.

  Performance   Level  
Name: Max Base <contact>
Classes: 2 packages by
Country: Canada Canada
Innovation award
Innovation award
Nominee: 1x

Details

LM PHP (Language management PHP)

Multi Language PHP

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

LMPHP Features

  • Easy
  • Compact
  • Useful

LM-PHP Functions

word_add

Add a word to active language.

Return : Bool

Parameters : - $name(name of the word) - __Optional__, $value(value of the word)

word_get

Get a word from active language.

Return : The value of word.

Parameters : - $name(name of the word)

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

Add a new language.

Return : Bool

Parameters : - $key(language name)

language_remove

Remove a language.

Return : Bool

Parameters : - $key(language name)

language_active

Activate a language.

Return : Bool

Parameters : - $key(language name)

language_current

Get current active language.

Return : Name of the active language.

Parameters : None

language_exists

Check a language is exists or not.

Return : Bool

Parameters : - $key (language name)

language

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

Return : Array

Parameters : - __Optional__, $filter(language name)

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

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

License

LMPHP is licensed under the GNU General Public License.

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Plain text file LMPHP.php Class Update version 1.1
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file Sample.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:112
This week:10
All time:9,029
This week:37Up
User Ratings User Comments (13)
 All timeMonth
Utility:100%StarStarStarStarStarStar100%Equal
Consistency:100%StarStarStarStarStarStar100%Equal
Documentation:100%StarStarStarStarStarStar100%Equal
Examples:100%StarStarStarStarStarStar100%Equal
Tests:--
Videos:--
Overall:80%StarStarStarStarStar80%Equal
Rank:271Up
 
tiny and small, but it was useful.
7 hours ago (Nardan)
80%StarStarStarStarStar
I find it helpful
7 hours ago (Rumba)
80%StarStarStarStarStar
Good.
7 hours ago (Amtix)
80%StarStarStarStarStar
All the facilities.
7 hours ago (Amtix)
80%StarStarStarStarStar
it was good
20 days ago (Keegan)
80%StarStarStarStarStar
very good Can it be ready for use in the frameworks?
20 days ago (Rambin)
80%StarStarStarStarStar
It, was a tiny and useful class
20 days ago (rubin)
80%StarStarStarStarStar
it is good But I do not have any multi-language projects.
20 days ago (julian)
80%StarStarStarStarStar
Benefits: Simple and light
20 days ago (Alex)
80%StarStarStarStarStar
The creator seems to have focused on the needs .
20 days ago (Radelf)
80%StarStarStarStarStar
Performance well
22 days ago (Rudd)
80%StarStarStarStarStar
It was useful for me
22 days ago (Glenn)
80%StarStarStarStarStar
It was a good library.
22 days ago (Mirax)
80%StarStarStarStarStar