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 (23 days ago) RSS 2.0 feedStarStarStarStarStar 80%Total: 117 This week: 1All time: 9,007 This week: 351Up
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: United States United States
Age: ???
All time rank: 3729432 in United States United States
Week rank: 60 Up6 in United States United States Up
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:117
This week:1
All time:9,007
This week:351Up
User Ratings User Comments (13)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:100%StarStarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:80%StarStarStarStarStar
Rank:27
 
tiny and small, but it was useful.
23 days ago (Nardan)
80%StarStarStarStarStar
I find it helpful
23 days ago (Rumba)
80%StarStarStarStarStar
All the facilities.
23 days ago (Amtix)
80%StarStarStarStarStar
Good.
23 days ago (Amtix)
80%StarStarStarStarStar
it was good
1 month ago (Keegan)
80%StarStarStarStarStar
very good Can it be ready for use in the frameworks?
1 month ago (Rambin)
80%StarStarStarStarStar
It, was a tiny and useful class
1 month ago (rubin)
80%StarStarStarStarStar
it is good But I do not have any multi-language projects.
1 month ago (julian)
80%StarStarStarStarStar
Benefits: Simple and light
1 month ago (Alex)
80%StarStarStarStarStar
The creator seems to have focused on the needs .
1 month ago (Radelf)
80%StarStarStarStarStar
Performance well
1 month ago (Rudd)
80%StarStarStarStarStar
It was useful for me
1 month ago (Glenn)
80%StarStarStarStarStar
It was a good library.
1 month ago (Mirax)
80%StarStarStarStarStar