定制 answear/dpd-pl-pickup-services-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

answear/dpd-pl-pickup-services-bundle

最新稳定版本:4.2.0

Composer 安装命令:

composer require answear/dpd-pl-pickup-services-bundle

包简介

DPD.pl Pickup Services integration for Symfony.

README 文档

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 two main services:

  1. Answear\DpdPlPickupServicesBundle\Service\PUDOList - returns all PUDO items at once
  2. Answear\DpdPlPickupServicesBundle\Service\PUDOListStreaming - streams PUDO items one by one

Both services are 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.

统计信息

  • 总下载量: 15.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-15