Download the PHP package mateodioev/multi-lang without Composer
On this page you can find all versions of the php package mateodioev/multi-lang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mateodioev/multi-lang
More information about mateodioev/multi-lang
Files in mateodioev/multi-lang
Download mateodioev/multi-lang
More information about mateodioev/multi-lang
Files in mateodioev/multi-lang
Vendor mateodioev
Package multi-lang
Short Description A simple PHP class to manage multi-language websites.
License MIT
Package multi-lang
Short Description A simple PHP class to manage multi-language websites.
License MIT
Please rate this library. Is it a good library?
Informations about the package multi-lang
Multi-lang
A simple package to manage multi-language in your project.
Installation
Usage
-
Create a directory to save your language files, for example
resources/lang
. - Create a file for each language you want to support, for example
en.json
andes.json
.
File en.json
:
File es.json
:
-
Configure the dir
- Format the strings
File format
english_name
: The name of the language in English.name
: The name of the language in its own language.data
: The key-value pairs of the language strings.key
: The key of the string.value
: The value of the string. You can use placeholders to replace them with values.WARNING: If the json file does not contain any of these keys or different data it will give an error.
Validate the files
You can validate the files to check if they have the correct format.
WARNING: Not use in production. This load and parse all the files
All versions of multi-lang with dependencies
PHP Build Version
Package Version
No informations.
The package mateodioev/multi-lang contains the following files
Loading the files please wait ....