pod-point / countries
A package of useful components for internationalisation in Laravel applications.
Installs: 5 057
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 4
Requires
- php: ^7.3|^8.0
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
- illuminate/config: ^7.0|^8.0
- illuminate/filesystem: ^7.0|^8.0
- illuminate/support: ^7.0|^8.0
- illuminate/view: ^7.0|^8.0
- league/iso3166: ^3.0
- mpociot/vat-calculator: ^2.4
Requires (Dev)
- phpunit/phpunit: ^8.5.8|^9.3.3
- dev-master
- v5.0.2
- v5.0.1
- v5.0.0
- v5.0.0-rc
- v4.x-dev
- v4.0.3
- v4.0.2
- v4.0.0
- v4.0.0-rc
- v3.x-dev
- v3.3.0
- v3.2.2.x-dev
- v3.2.2
- v3.2.0
- v3.2.0-rc
- v3.1.4
- v3.1.3
- v3.1.1
- v3.1.0
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- 3.0.3
- 3.0.2
- v3.0.1
- v3.0.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0
- v1.0.1
- v1.0.0
- dev-mbe-77-add-spain
- dev-v4.x-fix/fix-guzzle-versions
- dev-fix-ireland-locale-v3
- dev-fix-ireland-locale
- dev-v4.x-feature/improve-number-helper-and-add-facade
- dev-latest-feature/improve-number-helper-and-add-facade
This package is auto-updated.
Last update: 2024-11-23 10:13:29 UTC
README
This package provides Laravel and Lumen applications internationalisation features:
- List of all countries with data such as dialing codes, names, currencies...
- Limited countries supported by our applications with additional data such as locale, language...
- Laravel ViewComposers with some data pre-loaded.
- Facades and helpers for country, currencies and tax rates (VAT).
- Exchange rates for currencies via OpenExchangeRate's API implementation.
The countries are indexed using their uppercase ISO codes (alpha2/cca2).
Installation
You can install the package via composer:
For Laravel 5.x and PHP <= 7.1
composer require pod-point/countries:^3.0
For Laravel 6.x and PHP >= 7.2
composer require pod-point/countries:^4.0
For Laravel 7.x or 8.x and PHP >= 7.3
composer require pod-point/countries:^5.0
Then, finally, if you're using a Laravel version which doesn't support Auto Discovery, add the service provider to your config/app.php
providers array:
'providers' => [ PodPoint\I18n\CountriesServiceProvider::class, ]
If you're using Lumen, add the following line to your bootstrap/app.php
file:
$app->register(PodPoint\I18n\CountriesServiceProvider::class);
Changelog
Please see CHANGELOG for more information on what has changed recently.
Licence
The MIT Licence (MIT). Please see Licence File for more information.
Travel shouldn't damage the earth 🌍
Made with ❤️ at Pod Point