Download the PHP package fdevs/locale without Composer
On this page you can find all versions of the php package fdevs/locale. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package locale
Locale Library
Documentation
Installation and usage
Installation and usage is a quick:
- Download Locale using composer
- Use the library
- Customize Data Provider
You can "fdevs/locale-bridge" for use with other libraries/components
Step 1: Download Locale library using composer
Download the bundle by running the command:
Composer will install the bundle to your project's vendor/fdevs
directory.
Step 2: Use the library
Basic setup:
Set current locale:
Get text for current locale:
Get text for locale - ru:
Get text for a locale for which we don't have translation:
Get text using a set of prioritized locales:
Here you can treat this as locales fallback, first found locale from your list will be chosen.
Step 3: Customize Data Provider
create your awesome provider
add your provider
License
This library is under the MIT license. See the complete license in the Library:
LICENSE
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.
All versions of locale with dependencies
PHP Build Version
Package Version
The package fdevs/locale contains the following files
Loading the files please wait ....