haitham / country-code-translation
This bundles translate given country codes to names
Package info
github.com/haithamsboui/country-code-translation-bundle
Type:symfony-bundle
pkg:composer/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: 2026-03-20 10:28:23 UTC
README
This bundles translate given country codes to names
{{ "TN" |country }} #default locale
<-- OR -->
{{ "TN" |country("en") }} #given locale
INSTALLATION via Composer
composer require haitham/country-code-translation
CONFIGURATION
Register the bundle:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new haitham\countriesBundle\haithamcountriesBundle(), ); // ... }