app-packers/php-bag

This package is abandoned and no longer maintained. No replacement package was suggested.

Vanilla PHP package for BAG (Basisregistraties Adressen en Gebouwen) from the Kadaster.

1.0.0 2018-05-03 21:35 UTC

This package is auto-updated.

Last update: 2021-09-03 11:06:27 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Style Status

PHP-BAG incorporates an easy to use package for retrieving address information from Basisregistraties Adressen en Gebouwen (BAG) into your vanilla PHP project.

Requirements

  • PHP 7.1

Installation

Add PHP-BAG to your Composer file via the composer require command:

$ composer require app-packers/php-bag

Or add it to composer.json manually:

"app-packers/php-bag": "0.1.0"

Usage

Here you can see an example of just how simple this package is to use.

use AppPackers\Bag\BagClient;

$bagClient = new BagClient();
$bagClient->setApiKey('00000000-0000-0000-0000-000000000000');

$bagClient->getAddressByZipcodeAndStreetNumber('7311KZ', 110);

Result

BagAddress {
  -street: "Hofstraat"
  -streetNumber: 110
  -city: "Apeldoorn"
  -zipCode: "7311KZ"
}

Licence

This library is open-sourced software licensed under the Apache License, Version 2.0.