PHPackages                             gplcart/country\_flag - 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. [Image &amp; Media](/categories/media)
4. /
5. gplcart/country\_flag

ActiveGplcart-module[Image &amp; Media](/categories/media)

gplcart/country\_flag
=====================

Adds country icons

00PHP

Since Mar 10Pushed 8y agoCompare

[ Source](https://github.com/gplcart/country_flag)[ Packagist](https://packagist.org/packages/gplcart/country_flag)[ RSS](/packages/gplcart-country-flag/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/84135799d905b2129d325008d16ac27568a8b5d9cb5a5aa60ddd3f79a47291ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f636f756e7472795f666c61672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/country_flag/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b32b4e233466ef788a8b19b438f9b7363cf642946fb175ea1e072b30474e5e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f636f756e7472795f666c61672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/country_flag/?branch=master)

Country flags is a [GPL Cart](https://github.com/gplcart/gplcart) module that adds a collection of country flags in SVG format (see ).

Icons are automatically added to country data arrays:

```
// Single item
$country = \gplcart\core\models\Country::get($code);

if(!empty($country['image])){
	print_r($country['image]);
}

// Lists
$countries = \gplcart\core\models\Country::getList();

foreach($countries as $country){
	if(!empty($country['image])){
  		print_r($country['image]);
   	}
}

```

To get them manually call `\gplcart\modules\country_flag\CountryFlag::getFlagImages()`

**Installation**

This module requires 3-d party library which should be downloaded separately. You have to use [Composer](https://getcomposer.org) to download all the dependencies.

1. From your web root directory: `composer require gplcart/country_flag`. If the module was downloaded and placed into `system/modules` manually, run `composer update` to make sure that all 3-d party files are presented in the `vendor` directory.
2. Go to `admin/module/list` end enable the module

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad45895ef2d2867dc5294b7581948c79eef568001241d98eaf631bfe9fadeb63?d=identicon)[gplcart](/maintainers/gplcart)

---

Top Contributors

[![gplcart](https://avatars.githubusercontent.com/u/16158956?v=4)](https://github.com/gplcart "gplcart (15 commits)")

### Embed Badge

![Health badge](/badges/gplcart-country-flag/health.svg)

```
[![Health](https://phpackages.com/badges/gplcart-country-flag/health.svg)](https://phpackages.com/packages/gplcart-country-flag)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
