Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/api-postcode/api-postcode-bundle
Api Postcode Symfony Bundle for fetching Address details
https://github.com/api-postcode/api-postcode-bundle
address api api-postcode bundle postcode symfony
Last synced: 18 days ago
JSON representation
Api Postcode Symfony Bundle for fetching Address details
- Host: GitHub
- URL: https://github.com/api-postcode/api-postcode-bundle
- Owner: api-postcode
- License: mit
- Created: 2017-06-02T11:31:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T18:38:55.000Z (over 2 years ago)
- Last Synced: 2024-09-18T04:17:16.091Z (2 months ago)
- Topics: address, api, api-postcode, bundle, postcode, symfony
- Language: PHP
- Homepage: https://api-postcode.nl
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Api Postcode Bundle
===================This bundle can be useed to fetch Address details from zipcode with number.
See: https://api-postcode.nl for more information.
Installation
------------
Installation is a quick 3 step process:1. Download api-postcode-bundle using composer
2. Enable the Bundle in AppKernel.php
3. Configure Api Postcode credentials### Step 1: Download postcode-bundle using composer
Add ApiPostcodeBundle by running the command:
``` bash
$ composer require api-postcode/api-postcode-bundle
```### Step 2: Enable the Bundle in AppKernel.php
``` php
get('api.postcode')->fetchAddress('1012JS', 1);
$address->getStreet(); // Dam
$address->getCity(); // Amsterdam
$address->getHouseNumber(); // 1
$address->getZipCode(); // 1012JS
$address->getLongitude(); // 4.4584
$address->getLatitude(); // 52.2296
```Usage from API
--------------Or try the API response:
http://127.0.0.1:8000/api/postcode?postcode=2011WD&nummer=2