Download the PHP package ashrafakl/yii2-locale without Composer
On this page you can find all versions of the php package ashrafakl/yii2-locale. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ashrafakl/yii2-locale
More information about ashrafakl/yii2-locale
Files in ashrafakl/yii2-locale
Download ashrafakl/yii2-locale
More information about ashrafakl/yii2-locale
Files in ashrafakl/yii2-locale
Vendor ashrafakl
Package yii2-locale
Short Description The yii2-locale extension represents the data relevant to a locale such as countries, languages, and orientation.
License MIT
Homepage https://github.com/ashrafakl/yii2-locale
Package yii2-locale
Short Description The yii2-locale extension represents the data relevant to a locale such as countries, languages, and orientation.
License MIT
Homepage https://github.com/ashrafakl/yii2-locale
Please rate this library. Is it a good library?
Informations about the package yii2-locale
yii2-locale
Locale class represents the data relevant to a locale such as countries, languages, and orientation.
This class uses and depend on the PHP intl extension.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed then add this to your application configuration:
Public properties
Name | Description |
---|---|
bundlename | Path of ResourceBundle for which to get available locales, or empty string for default locales list http://php.net/manual/en/resourcebundle.locales.php |
Public methods
Name | Description |
---|---|
getCountries | Get Countries list |
getCountry | Get Country |
getRelativePrimaryLanguages | Get languages list relative to its locale |
getPrimaryLanguages | Get languages list |
getOrientation | Get characters orientation, which is either 'ltr' (left-to-right) or 'rtl' (right-to-left) |
Example
To get orientaion use the following code
All versions of yii2-locale with dependencies
PHP Build Version
Package Version
The package ashrafakl/yii2-locale contains the following files
Loading the files please wait ....