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(3y ago)2219.3k↓57%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 2w 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

37

—

LowBetter than 81% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity36

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

1101d 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

[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3932.5M4.4k](/packages/filament-filament)[archilex/filament-toggle-icon-column

A toggle icon column for Filament

55743.1k1](/packages/archilex-filament-toggle-icon-column)[alizharb/filament-activity-log

A powerful, feature-rich activity logging solution for FilamentPHP v4 &amp; v5 with timeline views, dashboard widgets, and revert actions.

2989.8k3](/packages/alizharb-filament-activity-log)[archilex/filament-stacked-image-column

Display multiple images as a stack in your Filament tables

438.4k](/packages/archilex-filament-stacked-image-column)[watheqalshowaiter/filament-sticky-table-header

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

3664.0k](/packages/watheqalshowaiter-filament-sticky-table-header)[riodwanto/filament-ace-editor

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

2176.9k4](/packages/riodwanto-filament-ace-editor)

PHPackages © 2026

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