2017 © Pedro Peláez
 

library postcode-api

Communicates with the postcodeapi.nu api

image

wubs/postcode-api

Communicates with the postcodeapi.nu api

  • Thursday, April 30, 2015
  • by megawubs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Laravel Postcode API

This is a simple laravel package to use the dutch postcode api., (*1)

Installation

To install this library into your project simply do the following in your project root:, (*2)

composer require wubs/zip:1.1.*

Laravel specific

If you use Laravel, add 'Wubs\Zip\ZipServiceProvider', to app/config.php in the providers array and add 'Zip' => 'Wubs\Zip\Facades\Zip', to the aliases array, also in app/config.php., (*3)

Usage

You can use the facade like this:, (*4)

<?php
Zip::address("1234AA", 11);

Or get it from the IoC container like so:, (*5)

<?php
$api = $app->make('\Wubs\Zip\ZipApi')

Or inject it into a constructor, (*6)

<?php namespace App\Http\Controllers;

use Wubs\Zip\ZipApi;

class ZipController extends Controller
{
   private $api;

    public function __construct(ZipApi $api)
    {
        $this->api = $api;

    }
}

Publish the configuration by running:, (*7)

php artisan vendor:publish

Afterwards the configuration will be located in config/zip.php, (*8)

I highly recommend using the .env file., (*9)

Non laravel usage

The package is also usable without Laravel. See the code below., (*10)

<?php
require 'vendor/autoload.php'

use Wubs\Zip\ZipApi;

$zipApi = new ZipApi("API_KEY");
$address = $postcodeApi->address("1234AA", 11);

The Versions

30/04 2015

dev-master

9999999-dev

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

30/04 2015

1.1.43

1.1.43.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

30/04 2015

1.1.42

1.1.42.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

30/04 2015

1.1.41

1.1.41.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

29/04 2015

1.1.4

1.1.4.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

25/04 2015

1.1.3

1.1.3.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.1.2

1.1.2.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.1.1

1.1.1.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.1.0

1.1.0.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.0.4

1.0.4.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.0.3

1.0.3.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.0.2

1.0.2.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.0.1

1.0.1.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode

20/04 2015

1.0.0

1.0.0.0

Communicates with the postcodeapi.nu api

  Sources   Download

The Requires

 

The Development Requires

api wrapper postcode