2017 © Pedro Peláez
 

symfony-bundle postcode-bundle

Symfony Postcode bundle

image

vladshut/postcode-bundle

Symfony Postcode bundle

  • Wednesday, August 1, 2018
  • by vladshut
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Apiwise Postcode Bundle

This bundle can be useed to fetch Address details from zipcode with number. An account at Apiwise is required. For more information please take a look at: https://www.postcodeapi.nu, (*1)

Build Status Latest Stable Version License Total Downloads Coverage Status Scrutinizer Code Quality, (*2)

Installation

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

  1. Download postcode-bundle using composer
  2. Enable the Bundle in AppKernel.php
  3. Configure Apiwise credentials
  4. Add routes

Step 1: Download postcode-bundle using composer

Add UsoftPostcodeBundle by running the command:, (*4)

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


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

Step 3: Configure Apiwise credentials

# app/config/config.yml

# Apiwise Postcode API
usoft_postcode:
    apiwise:
        key: secret_api_wise_key

Step 4. Add routes

# app/config/routing.yml

postcode:
    resource: "@UsoftPostcodeBundle/Resources/config/routing.yml"
    prefix:   /

Usage Services

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

$address->getStreet(); // Dam $address->getCity(); // Amsterdam $address->getMunicipality(); // Amsterdam $address->getProvince(); // Noord-Holland $address->getNumber(); // 1 $address->getZipcode(); // 1012JS $address->getGeoLocation(); // array('latitude' => 52.3732926, 'longitude' => 4.8937176) ```, (*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

01/08 2018

v2.0.x-dev

2.0.9999999.9999999-dev https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

01/08 2018

2.0.4

2.0.4.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

01/08 2018

2.0.3

2.0.3.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

22/06 2018

2.0.2

2.0.2.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

22/06 2018

2.0.1

2.0.1.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

22/06 2018

2.0.0

2.0.0.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladyslav Shut

address bundle symfony postcode zipcode apiwise postcode-api

22/06 2018

dev-master

9999999-dev https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

22/06 2018

1.0.5

1.0.5.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

22/05 2018

1.0.4

1.0.4.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

30/03 2017

1.0.3

1.0.3.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

24/11 2016

1.0.2

1.0.2.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

24/11 2016

1.0.1

1.0.1.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api

23/11 2016

1.0.0

1.0.0.0 https://github.com/Shivella/postcode-bundle

Symfony Postcode bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

address bundle symfony postcode zipcode apiwise postcode-api