answear / econt-pickup-point-bundle
EcontBundle 的 API 客户端
2.0.1
2024-09-12 07:56 UTC
Requires
- php: >=7.4|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- marc-mabe/php-enum: ^3.0|^4.3
- symfony/http-kernel: ^5.4|^6.0
- symfony/serializer: ^5.4|^6.0
- webmozart/assert: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- phpro/grumphp: ^1.5.0
- phpstan/phpstan: ^1.4
- phpstan/phpstan-webmozart-assert: ^1.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- symfony/phpunit-bridge: 6.1.*
This package is auto-updated.
Last update: 2024-09-12 07:56:33 UTC
README
Symfony 的 Econt 集成。
API 文档可以在以下位置找到:[https://ee.econt.com/services/Nomenclatures/](https://ee.econt.com/services/Nomenclatures/)
安装
- 使用 Composer 安装
composer require answear/econt-pickup-point-bundle
Answear\EcontBundle\AnswearEcontBundle::class => ['all' => true],
应该由 Symfony Flex 自动添加到您的 config/bundles.php
文件中。
配置
# config/packages/answear_econt.yaml answear_econt: user: 'username' password: 'password'
配置将被传递给 \Answear\EcontBundle\ConfigProvider
类。
使用方法
获取办公室
use Answear\EcontBundle\Command\GetOffices; use Answear\EcontBundle\Request\GetOfficesRequest; /** @var GetOffices $getOfficesCommand */ $getOfficeResponse = $getOfficesCommand->getOffices(new GetOfficesRequest());
获取城市
use Answear\EcontBundle\Command\GetCities; use Answear\EcontBundle\Request\GetCitiesRequest; /** @var GetCities $getCitiesCommand */ $getCitiesResponse = $getCitiesCommand->getCities(new GetCitiesRequest());
最后备注
请随意提交包含新功能、改进或错误修复的 pull request。Answear 团队将感谢任何评论。