rapidez/pro6pp-postcode

Support postcode lookup using pro6pp.nl

1.0.0 2025-03-19 09:06 UTC

This package is auto-updated.

Last update: 2025-03-19 09:50:42 UTC


README

Support postcode lookup using pro6pp.nl

Installation

composer require rapidez/pro6pp-postcode

Configuration

Add your credentials in the .env

PRO6PP_API_KEY=

The key that needs to be used might also be called auth_key

Customisation

In case you have your own postcode fields you want checked and updated you can emit the postcode-change event passing a reactive object with the following keys:

  • country_id/country_code
  • postcode
  • street[0]
  • street[1]
  • city

Then you can use it like:

<input 
    v-on:change="window.app.$emit('postcode-change', addressVariables)" 
    name="postcode" 
    label="Postcode" 
    v-model="addressVariables.postcode" 
    required
/>
<input 
    v-on:change="window.app.$emit('postcode-change', addressVariables)" 
    name="street[1]" 
    type="number" 
    label="Housenumber" 
    v-model="addressVariables.street[1]" 
    placeholder=""
/>

Note

Currently only Dutch address completion is implemented!

License

GNU General Public License v3. Please see License File for more information.