PHPackages                             xtomdex/country-flags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xtomdex/country-flags

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xtomdex/country-flags
=====================

Class for getting country flag image URL

1.0.0(6y ago)02952BSD-3-ClausePHP

Since Nov 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xtomdex/country-flags)[ Packagist](https://packagist.org/packages/xtomdex/country-flags)[ RSS](/packages/xtomdex-country-flags/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (2)

CountryFlags API php wrapper
============================

[](#countryflags-api-php-wrapper)

Class for getting country flag image URL. Details on [Country Flag API](https://www.countryflags.io/) website.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist xtomdex/country-flags "*"

```

or add

```
"xtomdex/country-flags": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
