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    
Ratings Unique User Downloads Download Rankings
StarStarStarStarStar 80%Total: 174 All time: 8,666 This week: 181Up
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.

Picture of Max Base
  Performance   Level  
Name: Max Base <contact>
Classes: 4 packages by
Country: United States United States
Age: ???
All time rank: 2771373 in United States United States
Week rank: 303 Up29 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

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:174
This week:0
All time:8,666
This week:181Up
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:25
 
tiny and small, but it was useful.
2 years ago (Nardan)
80%StarStarStarStarStar
I find it helpful
2 years ago (Rumba)
80%StarStarStarStarStar
All the facilities.
2 years ago (Amtix)
80%StarStarStarStarStar
Good.
2 years ago (Amtix)
80%StarStarStarStarStar
it was good
2 years ago (Keegan)
80%StarStarStarStarStar
very good Can it be ready for use in the frameworks?
2 years ago (Rambin)
80%StarStarStarStarStar
It, was a tiny and useful class
2 years ago (rubin)
80%StarStarStarStarStar
it is good But I do not have any multi-language projects.
2 years ago (julian)
80%StarStarStarStarStar
Benefits: Simple and light
2 years ago (Alex)
80%StarStarStarStarStar
The creator seems to have focused on the needs .
2 years ago (Radelf)
80%StarStarStarStarStar
Performance well
2 years ago (Rudd)
80%StarStarStarStarStar
It was useful for me
2 years ago (Glenn)
80%StarStarStarStarStar
It was a good library.
2 years ago (Mirax)
80%StarStarStarStarStar
 
For more information send a message to info at phpclasses dot org.