2017 © Pedro Peláez
 

library country-flags

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

image

stidges/country-flags

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

  • Monday, January 29, 2018
  • by stidges
  • Repository
  • 1 Watchers
  • 8 Stars
  • 598 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 97 % Grown

The README.md

Country Flags

Latest Version on Packagist ![Software License][ico-license] Build Status Total Downloads, (*1)

A small package to convert a country code to the corresponding country flag emoji., (*2)

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

Installation

You can install the package via Composer:, (*4)

``` bash $ composer require stidges/country-flags, (*5)


## Basic Usage ``` php $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:, (*6)

``` php $countryFlag = new CountryFlag([ 'AA' => 'NL', ]);, (*7)

echo $countryFlag->get('AA'); // "🇳🇱" ```, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email info@stidges.com instead of using the issue tracker., (*10)

Credits

License

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

The Versions

29/01 2018

dev-master

9999999-dev https://github.com/stidges/country-flags

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

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

country countries emoji unicode flag country-flags

29/01 2018

v1.0.0

1.0.0.0 https://github.com/stidges/country-flags

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

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

country countries emoji unicode flag country-flags