Download the PHP package ikevinshah/i18n without Composer
On this page you can find all versions of the php package ikevinshah/i18n. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ikevinshah/i18n
More information about ikevinshah/i18n
Files in ikevinshah/i18n
Download ikevinshah/i18n
More information about ikevinshah/i18n
Files in ikevinshah/i18n
Vendor ikevinshah
Package i18n
Short Description Simplistic i18n Class
License MIT
Homepage https://www.ikevinshah.com
Package i18n
Short Description Simplistic i18n Class
License MIT
Homepage https://www.ikevinshah.com
Please rate this library. Is it a good library?
Informations about the package i18n
Simple i18n
A simplistic PHP Internationalization and localization class.
The class helps achieve internationalization (i18n) via separate ini files for separate languages.
Installation
Installation via composer `
Installation without composer
- Download the class file (src/i18n.php).
- Include it in your code ``
Usage
-
Install using either
composer
orincluding
the class - Set the variables as per your app, initialize and use
L::word
to display.` **Note:** Ensure that
$language.inifile exists in the
$ini_directory. So example if I want to use russian (ru) on the current page and the
$ini_directoryis
/var/www/lang/, class will search for ini file at the location of
/var/www/lang/ru.ini. If the language file (ru) is not found, class will fallback to use the fallback language. If the
$fallback_language.ini` file is also not found, it will throw an error and exit.
Example 1
File: /var/www/lang/en.ini `
PHP: ``
Example 2
File: /var/www/lang/fr.ini `
PHP: ``
Example 3
File: /var/www/lang/fr.ini -> Does not exist
File: /var/www/lang/en.ini `
PHP: ``
Example 4
File: /var/www/lang/fr.ini -> Does not exist
File: /var/www/lang/en.ini -> Does not exist
PHP: ``
All versions of i18n with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package ikevinshah/i18n contains the following files
Loading the files please wait ....