PHPackages                             tomatophp/filament-locations - 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. [Database &amp; ORM](/categories/database)
4. /
5. tomatophp/filament-locations

ActiveLibrary[Database &amp; ORM](/categories/database)

tomatophp/filament-locations
============================

Database Seeds for Countries / Cities / Areas / Languages / Currancy with ready to use resources for FilamentPHP

4.0.0(5mo ago)2320.8k↓12.5%9[3 PRs](https://github.com/tomatophp/filament-locations/pulls)6MITPHPPHP ^8.1|^8.2CI passing

Since Apr 11Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/tomatophp/filament-locations)[ Packagist](https://packagist.org/packages/tomatophp/filament-locations)[ GitHub Sponsors](https://github.com/3x1io)[ RSS](/packages/tomatophp-filament-locations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (17)Versions (12)Used By (6)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/3x1io-tomato-locations.jpg)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/3x1io-tomato-locations.jpg)

Filament Locations
==================

[](#filament-locations)

[![Dependabot Updates](https://github.com/tomatophp/filament-locations/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/tomatophp/filament-locations/actions/workflows/dependabot/dependabot-updates)[![PHP Code Styling](https://github.com/tomatophp/filament-locations/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/tomatophp/filament-locations/actions/workflows/fix-php-code-styling.yml)[![Tests](https://github.com/tomatophp/filament-locations/actions/workflows/tests.yml/badge.svg)](https://github.com/tomatophp/filament-locations/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/1e8ad562f77de4fe19a330d4ed0aabe1628985c4f1fdbf79d849c4bc61385ad1/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d6c6f636174696f6e732f76657273696f6e2e737667)](https://packagist.org/packages/tomatophp/filament-locations)[![License](https://camo.githubusercontent.com/e1db5fb045ab4ee5fdc1a4f671a33c930af8c8381726a1ecaa7e0c9fb4867101/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d6c6f636174696f6e732f6c6963656e73652e737667)](https://packagist.org/packages/tomatophp/filament-locations)[![Downloads](https://camo.githubusercontent.com/f84a5c23c7ad95963edf47d26742c306481681a906d18014db30f929ec8a3d35/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d6c6f636174696f6e732f642f746f74616c2e737667)](https://packagist.org/packages/tomatophp/filament-locations)

A database of countries, cities, area, languages, currenacy with json base and database base for FilamentPHP

Screenshots
-----------

[](#screenshots)

[![Countires](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/country.png)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/country.png)[![Edit Countires](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/edit-country.png)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/edit-country.png)[![Languages](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/languages.png)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/languages.png)[![Currency](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/currency.png)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/currency.png)[![Locaitons](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/locations.png)](https://raw.githubusercontent.com/tomatophp/filament-locations/master/arts/locations.png)

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

[](#installation)

```
composer require tomatophp/filament-locations
```

after install your package please run this command

```
php artisan filament-locations:install
```

finally reigster the plugin on `/app/Providers/Filament/AdminPanelProvider.php`

```
->plugin(\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make())
```

Disable Setting Hub
-------------------

[](#disable-setting-hub)

to disable the setting hub you can use this method

```
->plugin(\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make()->settingsHub(false))
```

Disable Resources
-----------------

[](#disable-resources)

to disable the resources you can use this method

```
->plugin(
\TomatoPHP\FilamentLocations\FilamentLocationsPlugin::make()
    ->countries(false)
    ->languages(false)
    ->currency(false)
    ->locations(false)
)
```

Use Database Driver
-------------------

[](#use-database-driver)

to use database driver or if you don't have "sqlite" on your app, you can change the driver on config to "database" first publish the config

```
php artisan vendor:publish --tag="filament-locations-config"
```

after that go to `config/filament-locations.php` and change the driver to "database"

```
    'driver' => 'database'
```

now you need to run migration

```
php artisan migrate
```

now load the data to seeder

```
php artisan filament-locations:seed
```

and the full data will be migrated to your database

Use Custom JSON Files
---------------------

[](#use-custom-json-files)

if you like to use your json data files it's easy you can just change the path of json on your config file with the matched json schema

```
    'driver' => 'json',

    'json' => [
        'countries' => base_path('resources/json/countries.json'),
        'cities' => base_path('resources/json/cities.json'),
        'areas' => base_path('resources/json/areas.json'),
        'languages' => base_path('resources/json/languages.json'),
        'currencies' => base_path('resources/json/currencies.json'),
    ],
```

Currency Helper
---------------

[](#currency-helper)

we have ready to use helper to convert the money amount to the currency symbol

```
dollar($amount) // Output $100.00
```

Publish Assets
--------------

[](#publish-assets)

you can publish config file by use this command

```
php artisan vendor:publish --tag="filament-locations-config"
```

you can publish views file by use this command

```
php artisan vendor:publish --tag="filament-locations-views"
```

you can publish languages file by use this command

```
php artisan vendor:publish --tag="filament-locations-lang"
```

you can publish migrations file by use this command

```
php artisan vendor:publish --tag="filament-locations-migrations"
```

Other Filament Packages
-----------------------

[](#other-filament-packages)

Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance75

Regular maintenance activity

Popularity38

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 70.7% 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 ~77 days

Recently: every ~115 days

Total

9

Last Release

150d ago

Major Versions

v1.0.6 → 2.0.02024-11-27

2.0.0 → 4.0.02025-12-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![Smdev4u](https://avatars.githubusercontent.com/u/120793495?v=4)](https://github.com/Smdev4u "Smdev4u (2 commits)")[![devOMAR-2](https://avatars.githubusercontent.com/u/93110311?v=4)](https://github.com/devOMAR-2 "devOMAR-2 (1 commits)")

---

Tags

cities-listcountry-listfilamentphpfilamentphp-pluginlocationlocations-databaseworld-countries-dataphplaraveldatabasecountrycityfilamentarealocations

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tomatophp-filament-locations/health.svg)

```
[![Health](https://phpackages.com/badges/tomatophp-filament-locations/health.svg)](https://phpackages.com/packages/tomatophp-filament-locations)
```

###  Alternatives

[tomatophp/filament-alerts

Send notification to users using notification templates and multi notification channels, it's support Filament Native Notification Service with macro, and a full integration to FCM service worker notifications

7910.8k3](/packages/tomatophp-filament-alerts)[epigra/trgeozones

Türkiye İl İlçe Semt Muhit Mahalle ve Posta Kodları Laravel Paketi. Adds Turkish Geographical Zones Support to your project including Cities, Districts and Countries in Turkish

8820.3k](/packages/epigra-trgeozones)[tomatophp/filament-translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), \_\_(), and get the string inside and translate them use UI.

6230.1k3](/packages/tomatophp-filament-translations)[tomatophp/filament-types

Manage any type on your app in Database with easy to use Resource for FilamentPHP

5616.7k8](/packages/tomatophp-filament-types)[nevadskiy/laravel-geonames

Populate your database using the GeoNames service.

2715.1k](/packages/nevadskiy-laravel-geonames)[salibhdr/typhoon-iran-cities

A laravel package for importing all regions such as provinces, counties, cities, city districts, rural districts and villages of iran into database accurately

6121.0k](/packages/salibhdr-typhoon-iran-cities)

PHPackages © 2026

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