2017 © Pedro Peláez
 

library del-countries-flags

Module with 235 countries and flags

image

delboy1978uk/del-countries-flags

Module with 235 countries and flags

  • Friday, March 29, 2013
  • by delboy1978uk
  • Repository
  • 2 Watchers
  • 6 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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)

The Versions

29/03 2013

dev-master

9999999-dev https://github.com/delboy1978uk/del-countries-flags

Module with 235 countries and flags

  Sources   Download

The Requires

 

zf2 flags countries