answear/mwl-pickup-point-bundle
最新稳定版本:2.2.0
Composer 安装命令:
composer require answear/mwl-pickup-point-bundle
包简介
API Client for MwlBundle
README 文档
README
@@@@@@@@& @@@@@@@@ @@@@@@@@ @@@ @@@ @@@ &@@@@@@@@ @@@@@@@@@ @@@@@@
@@@/ @@@ @@@ @@@ (@@ #@@ @@@ @@@ @@@ @@@ @@@ @@@ @@@* @@@
@@@/ @@@ @@@ @@@ @@@@ @@@ @@@ @@@ @@@ @@@@ @@@ @@@* @@@
@@@/ @@@ @@@ @@@ @@@@ @@@ @@@ @@@ @@@@@@ @@@ @@@* @@@
@@@/ @@@ @@@ @@@ @@@ @@@@ @@@ @@@ @@@ @@@ @@@ @@@ @@@* @@@
,@@@ @@@ @@@ @@@ @@@% #@@@ @@@ @@@ @@@ @@@ @@@. @@@ @@@* @@@
%@@@@@@@@ @@@ @@@ /@@@@@@. @@@@@@/@@@@@@ @@@@@@@ @@@@@@@@* @@@ @@@
MWL (Meest + Nova Poshta) pickup point bundle
MWL integration for Symfony.
Documentation of the API can be found here: https://documenter.getpostman.com/view/12823986/TzCTam5v
Installation
- install with Composer
composer require answear/mwl-pickup-point-bundle
Answear\MwlBundle\AnswearMwlBundle::class => ['all' => true],
should be added automatically to your config/bundles.php file by Symfony Flex.
Setup
# config/packages/answear_mwl.yaml answear_mwl: partnerKey: 'partner-key' secretKey: 'secret-key'
config will be passed to \Answear\MwlBundle\ConfigProvider class.
Usage
Get pickup points
use Answear\MwlBundle\Command\GetPickupPoints; use Answear\MwlBundle\Request\GetPickupPointsRequest; /** @var GetPickupPoints $getPickupPointsCommand */ $getPickupPointsResponse = $getPickupPointsCommand->getPickupPoints(new GetPickupPointsRequest());
Get pickup points by carriers and country codes
use Answear\MwlBundle\Command\GetPickupPointsByCarriersAndCountryCodes; use Answear\MwlBundle\Enum\CarrierEnum; use Answear\MwlBundle\Enum\CountryCodeEnum; use Answear\MwlBundle\Request\GetPickupPointsByCarriersAndCountryCodesRequest; use Answear\MwlBundle\Request\Struct\CarrierAndCountryCode; $requestData = [ new CarrierAndCountryCode( CarrierEnum::Meest, CountryCodeEnum::Ukraine ), ] /** @var GetPickupPointsByCarriersAndCountryCodes $getPickupPointsCommand */ $getPickupPointsResponse = $getPickupPointsCommand->getPickupPointsByCarriersAndCountryCodesRequest( new GetPickupPointsByCarriersAndCountryCodesRequest($requestData) );
Get cities
use Answear\MwlBundle\Command\GetCities; use Answear\MwlBundle\Request\GetCitiesRequest; /** @var GetCities $getCitiesCommand */ $getCitiesResponse = $getCitiesCommand->getCities(new GetCitiesRequest());
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.
统计信息
- 总下载量: 2.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-18