PHPackages                             marshmallow/address-prefiller - 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. marshmallow/address-prefiller

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

marshmallow/address-prefiller
=============================

This package will get the full address information based on the zipcode and house number. Currently online dutch addresses are supported.

v2.3.0(1mo ago)06.5k↓29.6%[1 PRs](https://github.com/marshmallow-packages/address-prefiller/pulls)MITVuePHP &gt;=7.1.0CI failing

Since Sep 3Pushed 2mo ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (16)Used By (0)

Laravel Address Prefiller
=========================

[](#laravel-address-prefiller)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Nova Translatable
=================

[](#nova-translatable)

[![Version](https://camo.githubusercontent.com/e54f424f9e4ccb70bebc820ca6089a0ca30ce2085f33077bc6a5ee967689e38e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f616464726573732d70726566696c6c6572)](https://github.com/marshmallow-packages/address-prefiller)[![Downloads](https://camo.githubusercontent.com/e5514420efa6d5b819de8937f6a68bd067493747d16363f60ce79c4a2549e034/68747470733a2f2f736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f616464726573732d70726566696c6c6572)](https://github.com/marshmallow-packages/address-prefiller)[![Issues](https://camo.githubusercontent.com/dcb90124401811585fb68f027dcc3e956a0b8d809c5e3772c679d222aba44ca5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f616464726573732d70726566696c6c6572)](https://github.com/marshmallow-packages/address-prefiller)[![Licence](https://camo.githubusercontent.com/ba5a8d2f3015d63b6a1e6b3bf7470cb9c532f8248444bef3087d7584f1f24eb2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d617273686d616c6c6f772d7061636b616765732f616464726573732d70726566696c6c6572)](https://github.com/marshmallow-packages/address-prefiller)

This package will prefill address field based on a provided zipcode and housenumber. This currently only supports Dutch addresses. This can be used in your custom applications or you can use it with Laravel Nova.

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

[](#installation)

### Installing the package via Composer

[](#installing-the-package-via-composer)

Install the package in a Laravel project via Composer.

```
# Install the package
composer require marshmallow/address-prefiller
```

### Usage in Nova

[](#usage-in-nova)

There is a custom Laravel Nova field available which you can use. This works very simular to the Laravel Place field. The difference is that this field will not talk to Algolia but to the official open api provided by the dutch goverment which should contain all the latest information.

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),
        $this->addressFields(),
    ];
}

protected function addressFields()
{
    return $this->merge([
        Zipcode::make(__('Zipcode prefiller'), __('Zipcode'), __('Housenumber'))
            /**
             * Let the package know which columns are connected to
             * the fields. The default values are commented after each
             * function call. Is your column names match these defaults,
             * you don't need to call all these functions.
             */
            ->zipcode('zipcode')
            ->housenumber('address_2')
            ->street('address_1')
            ->city('city')
            ->province('province')
            ->country('country')
            ->latitude('latitude')
            ->longitude('longitude'),

        /**
         * The field below will all be prefilled with the collected
         * data if we find a match on the submitted zipcode and housenumber.
         */
        Hidden::make(__('Zipcode'), 'zipcode')->hideFromIndex(),
        Hidden::make(__('Housenumber'), 'address_2')->hideFromIndex(),
        Text::make(__('Street'), 'address_1')->hideFromIndex(),
        Text::make(__('City'), 'city')->hideFromIndex(),
        Text::make(__('Province'), 'province')->hideFromIndex(),
        Country::make(__('Country'), 'country')->hideFromIndex(),
        Text::make(__('Latitude'), 'latitude')->hideFromIndex(),
        Text::make(__('Longitude'), 'longitude')->hideFromIndex(),
    ]);
}
```

### Usage manualy

[](#usage-manualy)

We have provided an example on how you can use this functionality in your own application. We've currently only used this in the Nova setting so if you're missing anything, please let us know!

```
use Marshmallow\Zipcode\Facades\Zipcode;

return Zipcode::get(
    $request->zipcode,
    $request->housenumber
);
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance92

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.5% 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 ~184 days

Recently: every ~383 days

Total

10

Last Release

45d ago

Major Versions

v1.0.3 → v2.0.02021-12-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (32 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (2 commits)")

---

Tags

laraveladdresszipcodepostcodegeodatageodata.nationaalgeoregister.nllocatieservernationaalgeoregister

### Embed Badge

![Health badge](/badges/marshmallow-address-prefiller/health.svg)

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

###  Alternatives

[pragmarx/zipcode

A worldwide address-by-zipcode searcher.

10265.4k](/packages/pragmarx-zipcode)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[flyingluscas/viacep-php

ViaCEP PHP SDK

3640.2k](/packages/flyingluscas-viacep-php)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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