PHPackages                             rmarsigli/filament-address - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rmarsigli/filament-address

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rmarsigli/filament-address
==========================

Address form plugin for Filament

00PHP

Since Nov 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/rmarsigli/filament-address)[ Packagist](https://packagist.org/packages/rmarsigli/filament-address)[ RSS](/packages/rmarsigli-filament-address/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Easy address manager for Filament and Laravel
=============================================

[](#easy-address-manager-for-filament-and-laravel)

This library is a solution for a recurring application in my applications, witch is to use an address solution without streets, but with **neighborhoods**, **cities** and **states**.

**Note:** it already has a Seeder ready for neighborhoods, cities and states in Brazil.

How to use
----------

[](#how-to-use)

First, install the package:

`composer require rmarsigli/filament-address `

Publish migration and (optionally) language:

```
php artisan vendor:publish --tags=filament-address-migration
php artisan vendor:publish --tags=filament-address-lang

```

Add the polymorphic relation to the resource model:

```
    use Rmarsigli\FilamentAddress\Models\Address;

    public function address(): MorphOne
    {
        return $this->morphOne(
            Address::class,
            'address',
            'address_type',
            'address_id'
        );
    }
```

### Using the form in Filament

[](#using-the-form-in-filament)

Use `hasAddress` trait in your Filament resource:

```
use Rmarsigli\FilamentAddress\Traits\HasAddress;
... // Filament classes

class MyResource extends Resource {
    use HasAddress;

    public static function form(Form $form): Form {
        $resourceInstance = new self();

        return $form
            ->schema([
                Section::make()->schema(
                    $resourceInstance->getAddressFields(),
                )
                ->inlineLabel(),
                ->hiddenOn('create')
            ]);
    }
}
```

The `inlineLabel()` is totally optional, and `hiddenOn('create')` method is to ensure that it will be executed when the Resource has an id.

### Using this package with Laravel

[](#using-this-package-with-laravel)

Without Filament, you can use this package. Import the models and integrate with your controller. Models are:

```
use Rmarsigli\FilamentAddress\Models\Address;
use Rmarsigli\FilamentAddress\Models\AddressCity;
use Rmarsigli\FilamentAddress\Models\AddressState;
use Rmarsigli\FilamentAddress\Models\AddressCountry;
```

Check project files for models structure.

Brazilian automatic seeder
--------------------------

[](#brazilian-automatic-seeder)

Maybe in another countries soon.

```
use Rmarsigli\FilamentAddress\Seeders\AddressSeeder;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call([
            AddressSeeder::class,
        ]);
    }
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a9a484479662b8c5f5fc5f37dafe1eeca5b92e0e1213c0d12736fc7624da096?d=identicon)[rmarsigli](/maintainers/rmarsigli)

---

Top Contributors

[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (1 commits)")

### Embed Badge

![Health badge](/badges/rmarsigli-filament-address/health.svg)

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

###  Alternatives

[ronanguilloux/php-gpio

GPIO-related utils &amp; toolkit PHP library

2678.0k](/packages/ronanguilloux-php-gpio)[daxslab/yii2-taggedview

Extension to help setup the standard HTML meta tags besides the ones defined by Opengraph and Twitter to contribute to website SEO

114.5k](/packages/daxslab-yii2-taggedview)

PHPackages © 2026

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