Download the PHP package answear/overseas-bundle without Composer
On this page you can find all versions of the php package answear/overseas-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download answear/overseas-bundle
More information about answear/overseas-bundle
Files in answear/overseas-bundle
Package overseas-bundle
Short Description Symfony bundle for Overseas api.
License MIT
Informations about the package overseas-bundle
Overseas pickup point bundle
Overseas integration for Symfony.
Documentation of the API can be found here: https://api.overseas.hr/apiinfo
Installation
- install with Composer
Answear\OverseasBundle\AnswearOverseasBundle::class => ['all' => true],
should be added automatically to your config/bundles.php
file by Symfony Flex.
Setup
- provide required config data:
environment
andapiKey
Logger service must implement Psr\Log\LoggerInterface
interface.
Usage
Get ParcelShops
@see https://api.overseas.hr/apiinfo#parcelshops
will return \Answear\OverseasBundle\Response\DTO\ParcelShop[]
array.
Get Places
@see https://api.overseas.hr/apiinfo#places
will return \Answear\OverseasBundle\Response\DTO\Place[]
array narrowed down to params. or simply
to get all places.
Error handling
Answear\OverseasBundle\Exception\ServiceUnavailableException
for allGuzzleException
MalformedResponseException
for partner other errorsAnswear\OverseasBundle\Exception\BadRequestException
if validation failed or for error response
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.
All versions of overseas-bundle with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^6.0|^7.0
psr/log Version ^1.1
symfony/http-kernel Version ^6.4|^7.0
symfony/property-access Version ^6.4|^7.0
symfony/property-info Version ^6.4|^7.0
symfony/serializer Version ^6.4|^7.0
webmozart/assert Version ^1.11