lsv / glsdk-parcelshop-api-bundle
Symfony bundle for webservice for GLS ParcelShop
Installs: 1 698
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- lsv/glsdk-parcelshop-api: ^1.0
- symfony/dependency-injection: ^2.6|^3.0
- symfony/http-foundation: ^2.6|^3.0
This package is auto-updated.
Last update: 2024-11-27 22:31:59 UTC
README
Install
Composer
Add this to your composer
"lsv/glsdk-parcelshop-api-bundle": "~1.0"
Or run
composer require lsv/glsdk-parcelshop-api-bundle
AppKernel
Add this to your AppKernel.php
new Lsv\GlsdkApiBundle\LsvGlsdkApiBundle()
Usage
Service
$this->get('glsdk.parcelshop')
Methods
$this->get('glsdk.parcelshop')->getParcelshop( ID )
$this->get('glsdk.parcelshop')->getParcelshopsFromZipcode( ZIPCODE )
$this->get('glsdk.parcelshop')->getParcelshopsNearAddress( STREET, ZIPCODE, LIMIT )
$this->get('glsdk.parcelshop')->getAllParcelshops()
Learn more about what the methods do at the bundles homepage
Adding your own guzzle client, fx if you want cache or retry service
Overwrite the parameter glsdk.parcelshop.client
with your own client
Or you can overwrite the whole class with the parameter glsdk.parcelshop.class