Skip to content

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

License

Notifications You must be signed in to change notification settings

dwightwatson/country-flags

 
 

Repository files navigation

Country Flags

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

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 info@stidges.com instead of using the issue tracker.

Credits

License

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%