2017 © Pedro Peláez
 

library pddk-parcelshop-api-bundle

Symfony bundle for webservice to Postdanmark ParcelShop

image

lsv/pddk-parcelshop-api-bundle

Symfony bundle for webservice to Postdanmark ParcelShop

  • Wednesday, July 20, 2016
  • by lsv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 784 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Postdanmark parcelshop (for Denmark) - Symfony Bundle

Install

Composer

Add this to your composer, (*1)

"lsv/pddk-parcelshop-api-bundle": "~1.0"

Or run, (*2)

composer require lsv/pddk-parcelshop-api-bundle

AppKernel

Add this to your AppKernel.php, (*3)

new Lsv\LsvPddkApiBundle\LsvPddkApiBundle()

Configuration

Add your consumer id to the config file, (*4)

You can get your consumer id from here, (*5)

lsv_pddk_api:
    consumerid: xxx-xxxx-xxxx

Usage

Service

$this->get('lsv_pddk_api.parcelshop')

Methods

$this->get('lsv_pddk_api.parcelshop')->getParcelshop( ZIPCODE, ID )

$this->get('lsv_pddk_api.parcelshop')->getParcelshopsFromZipcode( ZIPCODE )

$this->get('lsv_pddk_api.parcelshop')->getParcelshopsNearAddress( STREET, ZIPCODE, LIMIT )

Learn more about what the methods do at the bundles homepage, (*6)

Adding your own guzzle client, fx if you want cache or retry service

Overwrite the parameter lsv_pddk_api.client with your own client, (*7)

Or you can overwrite the whole class with the parameter lsv_pddk_api.class, (*8)

The Versions

20/07 2016

dev-master

9999999-dev

Symfony bundle for webservice to Postdanmark ParcelShop

  Sources   Download

MIT

The Requires

 

20/07 2016
20/07 2016

v1.2

1.2.0.0

Symfony bundle for webservice to Postdanmark ParcelShop

  Sources   Download

MIT

The Requires

 

20/07 2016

dev-lsv-patch-1

dev-lsv-patch-1

Symfony bundle for webservice to Postdanmark ParcelShop

  Sources   Download

MIT

The Requires

 

16/12 2015

v1.1

1.1.0.0

Symfony bundle for webservice to Postdanmark ParcelShop

  Sources   Download

MIT

The Requires

 

29/05 2015

v1.0

1.0.0.0

Symfony bundle for webservice to Postdanmark ParcelShop

  Sources   Download

MIT

The Requires