dev-master
9999999-dev https://github.com/delboy1978uk/del-countries-flagsModule with 235 countries and flags
The Requires
zf2 flags countries
Wallogit.com
2017 © Pedro Peláez
Module with 235 countries and flags
delboy1978uk/del-countries-flags A module with 235 countries,4 differently sized flag images for each country, and a form select element, with view helper., (*1)
Installation: Add this to your modules array in application config: 'DelCountriesFlags', (*2)
To get a Country entity in your controller: $countryService = $this->getServiceLocator()->get('delcountriesflags_service'); $country = $countryService()->getCountry('ESP'); //or GBR, USA, etc, (*3)
To get a dropdown select element of countries: $select = $countryService()->getCountriesFormSelectElement();, (*4)
Flag image urls: http://yoursite/flag/medium/FRA, (*5)
Url allowed sizes: tiny small medium large, (*6)
View Helpers: echo $this->delCountriesFlagsName('ESP'); //Country name echo $this->delCountriesFlagsFlag('ESP','tiny'); //Flag image, same sizes as above echo $this->formSelect($this->delCountriesFlagsSelectDropdown());, (*7)
Flag images from Flags of all Countries. If you like and use these flags please give them a link back to their site!, (*8)
Module with 235 countries and flags
zf2 flags countries