stefro / laravel-lang-country
Setting the locale is not enough most of the time, some countries use more than one languages. Also, different countries use different date notation formats, names, flags and currencies. This package is here to help you with that!
Installs: 18 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 284
Watchers: 7
Forks: 26
Open Issues: 0
Requires
- php: ^8.1|^8.2
- illuminate/support: ^9.0|^10.0|^11.0
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.13|^3.0
- friendsofphp/php-cs-fixer: ^3.22
- orchestra/testbench: ^7.0|^8.0|^9.0
- pestphp/pest: ^1.21 | ^2.0 | ^3.0
- pestphp/pest-plugin-type-coverage: ^2.0
- spatie/laravel-ray: ^1.32
- dev-master
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.x-dev
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.8.1
- 2.8
- 2.7
- 2.6
- 2.5
- 2.4.1
- 2.4
- 2.3
- 2.2
- 2.1
- 2.0
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/2024-11-19-dependency-updates
This package is auto-updated.
Last update: 2024-11-19 09:39:55 UTC
README
TLDR;
Laravel has great localisation functionality, but it is all based on the locale. The locale only refers to a language, not a country. This package adds the ability to localize based on the country. Why? Mainly because dates dates can be pronounced the same in a language, but be formatted differently in different countries. The package also adds more convenience functions to get localized country names, currency symbols and more.
Have you ever...
- had the problem that you needed a date format had to be localized?
- needed to show a date in a specific language?
- that you needed to show a country name in the local language?
- that you needed to show a currency symbol in the local currency?
- ...
The Laravel LangCountry package is here to help you with just that!
Documentation
You can find the official documentation here.
Change log
Please see CHANGELOG for more information on what has changed recently.
Upgrading
Please see UPGRADING for detailed upgrade instructions.
Contributing
Great! Please see the contributing guide in the documentation for details.
ToDo
- Caching to reduce file lookups.
Security
If you discover any security related issues, please email github@rouschop.com instead of using the issue tracker.
Credits
- Stef Rouschop
- Jayenne Montana: For adding local country names and currency.
- Ronald Huijgen: Background vocals, choreography and funny business.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.