pod-point/countries
最新稳定版本:v5.0.2
Composer 安装命令:
composer require pod-point/countries
包简介
A package of useful components for internationalisation in Laravel applications.
README 文档
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
统计信息
- 总下载量: 5.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-25