mohammadhprp/filament-ip-to-country-flag-column
最新稳定版本:v1.0.2
Composer 安装命令:
composer require mohammadhprp/filament-ip-to-country-flag-column
包简介
Display Country flag from IP address in your Filament tables
关键字:
README 文档
README
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.
Screenshot
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
To use the package, follow these steps:
use Mohammadhprp\IPToCountryFlagColumn\Columns\IPToCountryFlagColumn; IPToCountryFlagColumn::make('client_ip');
Options
-
Flag position: Change the position of the flag using
flagPosition. Available options:rightandleft.IPToCountryFlagColumn::make('client_ip')->flagPosition('left');
???? Note: Default flag position is
right. -
Hide flag: Hide the flag using
hideFlag.IPToCountryFlagColumn::make('client_ip')->hideFlag();
-
Location position: Change the location position using
location(). Available options:belowandabove.IPToCountryFlagColumn::make('client_ip')->location(position: 'above');
???? Note: Default location position is
below. -
Location separator: Change the location separator using
location().IPToCountryFlagColumn::make('client_ip')->location(separator: '-');
???? Note: Default location separator is
,. -
Hide city or country name: Hide city or country name using
hideCity()orhideCountry().IPToCountryFlagColumn::make('client_ip') ->hideCountry() ->hideCity();
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.
统计信息
- 总下载量: 16.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04
