2017 © Pedro Peláez
 

library laravel-pro6pp

Laravel interface to Pro6pp API PHP Wrapper

image

pendonl/laravel-pro6pp

Laravel interface to Pro6pp API PHP Wrapper

  • Wednesday, September 13, 2017
  • by Pendo
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2,135 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 57 % Grown

The README.md

Laravel Facade for Pro6PP PHP Wrapper

Latest version on Packagist Software License Travis branch Scrutinizer SensioLabs Insight Style Ci Total Downloads, (*1)

The PendoNL/laravel-pro6pp package provides an easy to use way to communicate with Pro6PP's API to fetch location based data via a Facade. Of course you may also use the class without the Facade. More information on the class and it's methods can be found here., (*2)

Usage

You can use any method by using the Facade, your API key and preferred data type are used automatically with each request:, (*3)

$getAddress = Pro6pp::autocomplete(6225, '7', c);
$suggestions = Pro6pp::suggest('Maast', 10);
$distanceBetweenCoordinates = Pro6pp::coordinateDistance(50.858030, 5.717376, 50.840078, 5.659258);

Installation

Install the package using composer:, (*4)

composer require pendonl/laravel-pro6pp, (*5)

Next, you must install the service provider (for L5.5 and up Auto-Discovery is enabled):, (*6)

// config/app.php
'providers' => [
    ...
    PendoNL\LaravelPro6pp\LaravelPro6ppServiceProvider::class,
];

Optionally, register the facade:, (*7)

// config/app.php
'aliases' => [
    ...
    'Pro6pp' => PendoNL\LaravelPro6pp\Facade::class,
];

To function properly, thise package requires pendonl/pro6pp-php-wrapper, this dependency will be installed automatically., (*8)

Then publish the configuration file using:, (*9)

php artisan vendor:publish --provider="PendoNL\LaravelPro6pp\LaravelPro6ppServiceProvider", (*10)

If you're using an .env file, make sure these are added to the bottom of that file:, (*11)

PRO6PP_API_KEY=
PRO6PP_FORMAT=json
PRO6PP_PRETTY=false

Security

If you discover any security related issues, please email joshua@pendo.nl instead of using the issue tracker., (*12)

Credits

Thanks to Pro6PP for their efforts to create, maintain and update a postal database for a fair price., (*13)

About Pendo

Pendo is a webdevelopment agency based in Maastricht, Netherlands. If you'd like, you can visit our website., (*14)

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

13/09 2017

dev-master

9999999-dev

Laravel interface to Pro6pp API PHP Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Joshua de Gier

11/11 2016

v1.0.1

1.0.1.0

Laravel interface to Pro6pp API PHP Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Joshua de Gier

11/11 2016

v1.0.0

1.0.0.0

Laravel interface to Pro6pp API PHP Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Joshua de Gier