Download the PHP package mohammadhprp/filament-ip-to-country-flag-column without Composer
On this page you can find all versions of the php package mohammadhprp/filament-ip-to-country-flag-column. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohammadhprp/filament-ip-to-country-flag-column
More information about mohammadhprp/filament-ip-to-country-flag-column
Files in mohammadhprp/filament-ip-to-country-flag-column
Package filament-ip-to-country-flag-column
Short Description Display Country flag from IP address in your Filament tables
License MIT
Homepage https://github.com/mohammadhprp/filament-ip-to-country-flag-column
Informations about the package filament-ip-to-country-flag-column
IP to country flag Column for Filament 🚩
Display country flag from IP address in your Filament tables
This version supports Filament 5 and requires PHP 8.2 or newer.
Warning This plugin may cause a slight delay in page loading due to API calls to iplocation.
Screenshot

Installation
You can install the package via composer:
Usage
To use the package, follow these steps:
Options
-
Flag position: Change the position of the flag using
flagPosition. Available options:rightandleft.💡 Note: Default flag position is
right. -
Hide flag: Hide the flag using
hideFlag. -
Location position: Change the location position using
location(). Available options:belowandabove.💡 Note: Default location position is
below. -
Location separator: Change the location separator using
location().💡 Note: Default location separator is
,. -
Hide city or country name: Hide city or country name using
hideCity()orhideCountry(). -
Custom location resolver: Use a custom resolver to cache lookups or use another IP location provider.
-
Lazy loading: Defer location lookups until the table has loaded. This avoids blocking the initial page response when the column is used with a deferred Filament table.
Location responses from the default provider are cached for 24 hours. Use
locationResolver()when you need application-specific caching or a different provider.
Testing
Example Application
The example/ directory contains a Laravel 12 and Filament 5 application
using this package through a local Composer path repository. See
example/README.md for setup and login instructions.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
- Fork the repository.
- Create a new branch for your feature.
- Make your changes and commit them with clear commit messages.
- Submit a pull request to the
masterbranch.
Credits
License
This project is licensed under the MIT License - see the License file for details.