2017 © Pedro Peláez
 

symfony-bundle api-postcode-bundle

Symfony Api Postcode bundle

image

api-postcode/api-postcode-bundle

Symfony Api Postcode bundle

  • Monday, June 26, 2017
  • by api-postcode
  • Repository
  • 0 Watchers
  • 0 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Api Postcode Bundle

This bundle can be useed to fetch Address details from zipcode with number., (*1)

See: https://api-postcode.nl for more information., (*2)

Installation

Installation is a quick 3 step process:, (*3)

  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:, (*4)

``` bash $ composer require api-postcode/api-postcode-bundle, (*5)


### Step 2: Enable the Bundle in AppKernel.php ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new ApiPostcode\PostcodeBundle\ApiPostcodeBundle(), ); }

Step 3: Configure Api Postcode credentials

# app/config/config.yml

# Api Postcode Token
api_postcode:
    token: secret-token


Usage Services

``` php $address = $this->get('api.postcode')->fetchAddress('1012JS', 1);, (*6)

$address->getStreet(); // Dam $address->getCity(); // Amsterdam $address->getHouseNumber(); // 1 $address->getZipCode(); // 1012JS $address->getLongitude(); // 4.4584 $address->getLatitude(); // 52.2296 ```, (*7)

Usage from API

Or try the API response:, (*8)

http://127.0.0.1:8000/api/postcode?postcode=2011WD&nummer=2, (*9)

The Versions

26/06 2017

dev-master

9999999-dev https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api

05/06 2017

1.0.4

1.0.4.0 https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api

05/06 2017

1.0.3

1.0.3.0 https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api

05/06 2017

1.0.2

1.0.2.0 https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api

05/06 2017

1.0.1

1.0.1.0 https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api

05/06 2017

1.0.0

1.0.0.0 https://api-postcode.nl

Symfony Api Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Api Postcode

address bundle symfony postcode zipcode postcode-api