Download the PHP package aligurbuz/lingua without Composer
On this page you can find all versions of the php package aligurbuz/lingua. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package lingua
Lingua
Easily integrate and manage your language files.
Introduction:
It is a package that you can extensively manage your language files in the format of yaml. Under this package you can easily include your language files in your application code as defined in the package usage.
Installation:
Usage
Include your Composer vendor autoload file and use the Lingua class as follows.
Data Retrieving
Include your Composer vendor autoload file and use the Lingua class as follows.The directory path you will assign to constructor object of the lingua class is the main path to your language files. As long as you do not specify the locale method, the "en" directory is automatically appended to the main path.
Sometimes when you search for a key in a language file you may want to determine if it is also included in a file that is automatically included. If the called key does not exist in the specified file, it will check whether it exists automatically in the included file. In fact, lingua will automatically join the two files here. The key you are looking for will be searched in a single array.
In addition, in some cases you may want your auto-uploaded files to be in a directory.In this case, you can use the includeDir method and, as you can see,the search array will be included in all files in a directory.