IP to country flag 🚩 plugin screenshot
Dark mode ready
No multilingual support
Supports v5.x

IP to country flag 🚩 by Mohammadhprp

Community

Display country flag from IP address in your tables.

Tags: Panels Tables Table Column
Supported versions:
5.x 4.x
Mohammadhprp avatar Author: Mohammadhprp

Package health

Automated checks of this plugin's Composer package

100 / 100
Security 100
Maintenance 100
Ecosystem 100
15 checks
  • Passed: GitHub Actions pinned to SHA
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Passed: Dependabot or Renovate configured
  • Passed: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 0 days ago; last release 29 days ago.
  • Passed: composer.lock not committed by library — composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 1 month ago

Documentation

License Latest Version on Packagist Total Downloads Plumb score

image

#Installation

Requires Filament 5 and PHP 8.2 or newer.

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

#Usage

use Mohammadhprp\IPToCountryFlagColumn\Columns\IPToCountryFlagColumn;

IPToCountryFlagColumn::make('client_ip');

#Options

  • flagPosition('left') - flag position, right (default) or left.
  • location(position: 'above', separator: '-') - location position, below (default) or above, and separator (default ,).
  • hideIP(), hideFlag(), hideLocation(), hideCountry(), hideCity().
  • locationResolver(fn (string $ip): array => [...]) - use another provider, add caching, or point at a self-hosted service. The package never caches lookups itself.
  • whenVisible() - resolve a cell only once it scrolls into view.
  • loadingState('Locating…') and errorState('Unavailable') - what a cell shows while loading and when a lookup fails (they accept a string, an Htmlable, or a closure). Failed cells are clickable to retry; disable with retryable(false). Use errorStateUsing(fn (Throwable $exception) => ...) if you need the exception.

#Testing

composer test

#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

  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

#License

This project is licensed under the MIT License - see the License file for details.

The author

Mohammadhprp avatar Author: Mohammadhprp

Mohammadhprp is a software developer who loves building mobile apps and websites.

Plugins
1
Stars
82