PHPackages                             mohammadhprp/filament-ip-to-country-flag-column - 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. [Admin Panels](/categories/admin)
4. /
5. mohammadhprp/filament-ip-to-country-flag-column

ActiveLibrary[Admin Panels](/categories/admin)

mohammadhprp/filament-ip-to-country-flag-column
===============================================

Display Country flag from IP address in your Filament tables

v1.0.2(2y ago)2217.4k↓29.6%5[1 issues](https://github.com/mohammadhprp/filament-ip-to-country-flag-column/issues)MITPHPPHP ^8.1CI failing

Since Jul 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mohammadhprp/filament-ip-to-country-flag-column)[ Packagist](https://packagist.org/packages/mohammadhprp/filament-ip-to-country-flag-column)[ Docs](https://github.com/mohammadhprp/filament-ip-to-country-flag-column)[ RSS](/packages/mohammadhprp-filament-ip-to-country-flag-column/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (7)Used By (0)

IP to country flag Column for Filament 🚩
========================================

[](#ip-to-country-flag-column-for-filament-)

[![License](https://camo.githubusercontent.com/57b6e61d909cd42c44c09b0b6e9cf65b119f98cbe544a8ef8ebf155937bfb115/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6f68616d6d6164687072702f66696c616d656e742d69702d746f2d636f756e7472792d666c61672d636f6c756d6e)](LICENSE)[![Latest Version on Packagist](https://camo.githubusercontent.com/2835fa6c1329baebbae421fff8f0c0ecad0bb066686e3fd45c429b45309ac388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6d6164687072702f66696c616d656e742d69702d746f2d636f756e7472792d666c61672d636f6c756d6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohammadhprp/filament-ip-to-country-flag-column)[![Total Downloads](https://camo.githubusercontent.com/10dcbfbed5dd223d4745b9841ce2092566ec7beac4d593e22048d86752d958ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6d6164687072702f66696c616d656e742d69702d746f2d636f756e7472792d666c61672d636f6c756d6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohammadhprp/filament-ip-to-country-flag-column)

Display country flag from IP address in your Filament tables

> **Warning**This plugin may cause a slight delay in page loading due to API calls to [iplocation](https://iplocation.com).

Screenshot
----------

[](#screenshot)

[![image](https://raw.githubusercontent.com/mohammadhprp/filament-ip-to-country-flag-column/master/.github/assets/screenshot.png)](https://raw.githubusercontent.com/mohammadhprp/filament-ip-to-country-flag-column/master/.github/assets/screenshot.png)

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

[](#installation)

You can install the package via composer:

```
composer require mohammadhprp/filament-ip-to-country-flag-column
```

For Filament v2:

```
composer require mohammadhprp/filament-ip-to-country-flag-column:"^0.2.0"
```

Usage
-----

[](#usage)

To use the package, follow these steps:

```
use Mohammadhprp\IPToCountryFlagColumn\Columns\IPToCountryFlagColumn;

IPToCountryFlagColumn::make('client_ip');
```

### Options

[](#options)

1. **Flag position**: Change the position of the flag using `flagPosition`. Available options: `right` and `left`.

    ```
    IPToCountryFlagColumn::make('client_ip')->flagPosition('left');
    ```

    > 💡 Note: Default flag position is `right`.
2. **Hide flag**: Hide the flag using `hideFlag`.

    ```
    IPToCountryFlagColumn::make('client_ip')->hideFlag();
    ```
3. **Location position**: Change the location position using `location()`. Available options: `below` and `above`.

    ```
    IPToCountryFlagColumn::make('client_ip')->location(position: 'above');
    ```

    > 💡 Note: Default location position is `below`.
4. **Location separator**: Change the location separator using `location()`.

    ```
    IPToCountryFlagColumn::make('client_ip')->location(separator: '-');
    ```

    > 💡 Note: Default location separator is `,`.
5. **Hide city or country name**: Hide city or country name using `hideCity()` or `hideCountry()`.

    ```
    IPToCountryFlagColumn::make('client_ip')
         ->hideCountry()
         ->hideCity();
    ```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/mohammadhprp/filament-ip-to-country-flag-column/blob/master/CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

1. Fork the repository.
2. Create a new branch for your feature.
3. Make your changes and commit them with clear commit messages.
4. Submit a pull request to the `master` branch.

Credits
-------

[](#credits)

- [Mohammadhprp](https://github.com/mohammadhprp)
- [All Contributors](https://github.com/mohammadhprp/filament-ip-to-country-flag-column/contributors)

License
-------

[](#license)

This project is licensed under the MIT License - see the [License](https://github.com/mohammadhprp/filament-ip-to-country-flag-column/blob/master/LICENSE) file for details.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~4 days

Total

5

Last Release

1009d ago

Major Versions

v0.2.0 → v1.0.02023-08-04

### Community

Maintainers

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

---

Top Contributors

[![mohammadhprp](https://avatars.githubusercontent.com/u/53655026?v=4)](https://github.com/mohammadhprp "mohammadhprp (24 commits)")

---

Tags

filamentpluginlaraveltablesfilamentadmin-panelcolumnmohammadhrprfilament-ip-to-country-flag

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mohammadhprp-filament-ip-to-country-flag-column/health.svg)

```
[![Health](https://phpackages.com/badges/mohammadhprp-filament-ip-to-country-flag-column/health.svg)](https://phpackages.com/packages/mohammadhprp-filament-ip-to-country-flag-column)
```

###  Alternatives

[archilex/filament-toggle-icon-column

A toggle icon column for Filament

53626.3k1](/packages/archilex-filament-toggle-icon-column)[archilex/filament-stacked-image-column

Display multiple images as a stack in your Filament tables

438.0k](/packages/archilex-filament-stacked-image-column)[riodwanto/superduper-filament-starter-kit

A comprehensive Laravel Filament 3 💡 starter kit with pre-installed plugins, admin panel, user management, SEO tools, theme customization, and content management for rapid application development

2708.5k](/packages/riodwanto-superduper-filament-starter-kit)[riodwanto/filament-ace-editor

An ACE editor field for Filament forms with syntax highlighting, themes, and autocompletion.

2065.8k4](/packages/riodwanto-filament-ace-editor)[watheqalshowaiter/filament-sticky-table-header

A Filament plugin that makes table headers stick when scrolling down for better UX.

3020.4k](/packages/watheqalshowaiter-filament-sticky-table-header)[a909m/filament-statefusion

Filament StateFusion is a powerful FilamentPHP plugin that seamlessly integrates Spatie Laravel Model States into the Filament admin panel. This package provides an intuitive way to manage model states, transitions, and filtering within Filament, enhancing the user experience and developer productivity.

3010.8k1](/packages/a909m-filament-statefusion)

PHPackages © 2026

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