juancamunoz / country-code-to-emoji-flags
Converts string of country codes into string of emoji flags.
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/juancamunoz/country-code-to-emoji-flags
Requires
- php: >=5.3.0
README
Converts a country code to emoji flag. Most flags use a 2-letter code, but some use more (eg England=gbeng, Scotland=gbsct, Wales=gbwls, etc).
Why Emoji❓
Emoji symbol is a textual replacement for a graphic image file while having the benefits of a graphic image. The image file is already present at your intended destination (a person's device), so why would you transmit the image to them again and again? -- Use emoji!
use juancamunoz\flagEmoji\flagEmoji; echo flagEmoji::convert('uk'); # 🇬🇧 echo flagEmoji::convert('gbwls'); # 🏴 echo flagEmoji::convert('gbsct'); # 🏴 echo flagEmoji::convert('gbeng'); # 🏴