All Projects → stidges → country-flags

stidges / country-flags

Licence: MIT license
A small package to convert a country code to the corresponding country flag emoji

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to country-flags

World countries
Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP and SQL formats, in multiple languages and with national flags included
Stars: ✭ 598 (+2114.81%)
Mutual labels:  countries, flags
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
Stars: ✭ 78 (+188.89%)
Mutual labels:  countries, flags
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+88.89%)
Mutual labels:  countries, flags
Flags
🇸🇪 Flag extension make flag emoji, image
Stars: ✭ 28 (+3.7%)
Mutual labels:  emoji, flags
Countrycode
🎯 Swift country and phone code Picker
Stars: ✭ 175 (+548.15%)
Mutual labels:  countries, flags
Countries
Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
Stars: ✭ 1,365 (+4955.56%)
Mutual labels:  countries, flags
vue-flagpack
Flagpack contains 260+ easily implementable flag icons to use in your design or code project.
Stars: ✭ 42 (+55.56%)
Mutual labels:  countries, flags
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+414.81%)
Mutual labels:  countries, flags
Countries
Countries, Languages & Continents data (capital and currency, native name, calling codes).
Stars: ✭ 656 (+2329.63%)
Mutual labels:  emoji, countries
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (+214.81%)
Mutual labels:  emoji, countries
Base100
base💯 - Encode your data into emoji
Stars: ✭ 244 (+803.7%)
Mutual labels:  emoji
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (+811.11%)
Mutual labels:  emoji
sticker-finder
⚡ A telegram bot for searching all the stickers (just like @gif).
Stars: ✭ 90 (+233.33%)
Mutual labels:  emoji
rn-emoji-keyboard
Super performant, lightweight, fully customizable emoji picker 🚀
Stars: ✭ 228 (+744.44%)
Mutual labels:  emoji
Emoji Selector For Gnome
This extension provide a popup menu with some emojis ; clicking on an emoji copies it to the clipboard.
Stars: ✭ 239 (+785.19%)
Mutual labels:  emoji
Emojitwo
Fork of the last fully free EmojiOne™ 2 artwork
Stars: ✭ 250 (+825.93%)
Mutual labels:  emoji
React Tater
A React component to add annotations to any element on a page 🥔
Stars: ✭ 235 (+770.37%)
Mutual labels:  emoji
V Emoji Picker
🌟 A Lightweight and customizable package of Emoji Picker in Vue using emojis natives (unicode).
Stars: ✭ 231 (+755.56%)
Mutual labels:  emoji
Java China
🍡 此项目已废弃,请移步至 https://github.com/junicorn/roo
Stars: ✭ 232 (+759.26%)
Mutual labels:  emoji
text2emoji
Predict an emoji that is associated with a text
Stars: ✭ 30 (+11.11%)
Mutual labels:  emoji

Country Flags

Latest Version on Packagist Software License Build Status Total Downloads

A small package to convert a country code to the corresponding country flag emoji.

Note: Emoji flags are not supported on Windows, which displays two-letter country codes instead of emoji flag images.

Installation

You can install the package via Composer:

$ composer require stidges/country-flags

Basic Usage

$countryFlag = new CountryFlag;

echo $countryFlag->get('NL'); // "🇳🇱"

Aliasing

If you would like to make country codes available under a custom aliases, you can pass these to the constructor:

$countryFlag = new CountryFlag([
    'AA' => 'NL',
]);

echo $countryFlag->get('AA'); // "🇳🇱"

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].