2017 © Pedro Peláez
 

symfony-bundle postcode-bundle

Symfony Postcode bundle

image

shivella/postcode-bundle

Symfony Postcode bundle

  • Tuesday, May 22, 2018
  • by Shivella
  • Repository
  • 2 Watchers
  • 1 Stars
  • 976 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % 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

22/05 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/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