answear / dpd-pl-pickup-services-bundle
DPD.pl Pickup Services integration for Symfony.
Installs: 11 318
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.2
- ext-simplexml: *
- guzzlehttp/guzzle: ^6.0|^7.0
- symfony/http-kernel: ^6.4|^7.0
- webmozart/assert: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpro/grumphp: ^2.6
- phpstan/phpstan: ^1.12
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^10.5
- roave/security-advisories: dev-master
- symfony/phpunit-bridge: 6.4|^7.0
This package is auto-updated.
Last update: 2024-10-30 07:21:21 UTC
README
Integration for DPD.pl's PICKUP Services API avialble mypudo.dpd.com.pl.
Installation
- install with Composer
composer require answear/dpd-pl-pickup-services-bundle
Answear\DpdPlPickupServicesBundle\AnswearDpdPlPickupServicesBundle::class => ['all' => true],
should be added automatically to your config/bundles.php
file by Symfony Flex.
Configuration
Below you will find bundle's full configuration:
answear_dpd_pl_pickup_services: key: 'xxxxxx' # your API Key # settings below are set as default, you don't need to provide them url: 'https://mypudo.dpd.com.pl/api/pudo/' # service's URL requestTimeout: 10.0 # time the library will wait for server's response
When using library without Symfony you need to put your configuration into an
instance of \Answear\DpdPlPickupServicesBundle\Service\ConfigProvider
object.
Usage
DPD's API is available through the Answear\DpdPlPickupServicesBundle\Service\PUDOList
that is automatically registered in your Symfony application's DI container. PUDO items
are returned to you as Answear\DpdPlPickupServicesBundle\ValueObject\PUDO
objects.
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.