haitham / country-code-translation
此包将给定的国家代码翻译为名称
v1.01
2018-02-19 23:51 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0.19
- sensio/framework-extra-bundle: ^5.0.0
- symfony/monolog-bundle: ^3.1.0
- symfony/polyfill-apcu: ^1.0
- symfony/symfony: 3.4.*
- twig/twig: ^1.0||^2.0
This package is not auto-updated.
Last update: 2024-09-20 03:28:19 UTC
README
此包将给定的国家代码翻译为名称
{{ "TN" |country }} #default locale <-- OR --> {{ "TN" |country("en") }} #given locale
通过Composer进行安装
composer require haitham/country-code-translation
配置
注册此包
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new haitham\countriesBundle\haithamcountriesBundle(), ); // ... }