janoszen/i18n

This package is abandoned and no longer maintained. No replacement package was suggested.

The other I18N approach

1.0.0 2015-10-05 17:00 UTC

This package is auto-updated.

Last update: 2020-08-11 17:38:57 UTC


README

This is an I18N library with some non-standard features. Use at your own risk under the BSD license.

Thanks to the DoclerWeb guys for their help. Please visit www.dotroll.com and www.doclerweb.hu

Components

Country

This class has two purposes. First it contains a lot of information on the world's countries, most notably the short and official country names in English and Hungarian as well as in every official language in that country. It also contains the timezone of the capital, the TLD for that country and EU membership information. This information has been hand-picked and may therefore contain errors.

Secondly, it represents a country as an object and can be queried for the name, etc.

Currency

This is a very simple class for currency representation. It currently supports only three currencies: HUF, EUR and USD. This class also contains some style information how the currency normally formats money.

Language

This is a base class for all language representation. Again, this class has two purposes. It serves as an object representation, but also contains a lot of information like character maps for unknown characters, lexicographic ordering, etc. Please be sure to check the PHPDoc comments as features are too numerous to list here.

PhonePrefix

This class contains every country prefix in the world and again can be used as an object representation.

Timestamp

This is a very small utility class used to hold a timestamp in integer format.