Download the PHP package marshmallow/address-prefiller without Composer
On this page you can find all versions of the php package marshmallow/address-prefiller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/address-prefiller
More information about marshmallow/address-prefiller
Files in marshmallow/address-prefiller
Package address-prefiller
Short Description This package will get the full address information based on the zipcode and house number. Currently online dutch addresses are supported.
License MIT
Informations about the package address-prefiller

Laravel Address Prefiller
This package prefills address fields based on a provided zipcode and house number. It currently only supports Dutch addresses. You can use it in your custom applications, or use the ready-made field with Laravel Nova.
The address data is retrieved from the official open API provided by the Dutch government (PDOK Locatieserver), which should contain the latest information.
Installation
Install the package via Composer:
The service provider (Marshmallow\Zipcode\FieldServiceProvider) is auto-discovered by Laravel, so there is nothing else to register.
Usage in Nova
A custom Laravel Nova field is available which you can use. It works very similarly to the Laravel Place field. The difference is that this field does not talk to Algolia, but to the official open API provided by the Dutch government, which should contain the latest information.
The field exposes a fluent setter for each address attribute so you can map it to the column names used in your resource: zipcode(), housenumber(), street(), city(), province(), country(), latitude() and longitude().
Usage manually
We have provided an example of 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!
You can map the returned address fields to your own keys by chaining the setter methods before calling get():
Testing
Security Vulnerabilities
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see the License File for more information.