eappointment / zmsclient
使用此库通过HTTP从eappointment API获取数据。
2.27.0
2024-09-05 15:29 UTC
Requires
- php: >=8.0.0
- ext-curl: >=0
- ext-json: >=1.0
- ext-mbstring: >=0
- ext-pcre: >=0
- eappointment/mellon: 2.06.*
- eappointment/zmsentities: 2.27.0
- eappointment/zmsslim: 2.27.0
- php-http/curl-client: ^2.2
- psr/http-message: ^1.0
- roave/security-advisories: dev-master
- tracy/tracy: ^2.9
- twig/twig: 3.*
Requires (Dev)
- helmich/phpunit-psr7-assert: ^4.3.0
- phpmd/phpmd: @stable
- phpspec/prophecy-phpunit: ^2.0.0
- phpunit/phpunit: ^9.5.4
- squizlabs/php_codesniffer: ^3.5.8
- dev-main
- 2.27.0
- 2.26.09-patch1
- 2.26.09
- 2.26.08-patch1
- 2.26.08
- 2.26.07
- 2.26.06
- 2.26.05
- 2.26.04
- 2.26.03
- 2.26.02
- 2.26.01
- 2.26.00
- 2.25.05
- 2.25.04
- 2.25.03
- 2.25.02
- 2.25.01-patch1
- 2.25.01
- 2.25.00
- 2.25.00-rc7
- 2.25.00-rc6
- 2.25.00-rc5
- 2.25.00-rc4
- 2.25.00-rc3
- 2.25.00-rc2
- 2.25.00-rc1
- 2.24.14
- 2.24.13
- 2.24.13-rc4
- 2.24.13-rc1
- 2.24.12
- 2.24.11
- 2.24.10
- 2.24.10-rc10
- 2.24.10-rc9
- 2.24.10-rc8
- 2.24.10-rc7
- 2.24.10-rc6
- 2.24.10-rc5
- 2.24.10-rc2
- 2.24.10-rc1
- 2.24.09-patch-1
- 2.24.09
- 2.24.09-rc2
- 2.24.09-rc1
- 2.24.08
- 2.24.07
- 2.24.07-rc5
- 2.24.07-rc4
- 2.24.07-rc3
- 2.24.06
- 2.24.06-rc1
- dev-berlin-2.27.01
- dev-berlin-2.27.0
- dev-berlin-2.27.0-update
- dev-berlin-2.26.09-patch1
- dev-berlin-2.26.09
- dev-berlin-2.26.07
- dev-berlin-2.26.06
- dev-berlin-60086-bugfix-for-source-data
- dev-berlin-2.26.05
- dev-berlin-2.26.04
- dev-berlin-59490-dependencies
- dev-berlin-2.26.04-rc
- dev-berlin-2.26.02
- dev-berlin-2.26.01
- dev-berlin-2.26.00
- dev-berlin-2.25.05
- dev-berlin-2.25.04
- dev-berlin-2.25.03
- dev-berlin-2.25.02
- dev-berlin-2.25.01
- dev-berlin-rc-2.25.00
This package is auto-updated.
Last update: 2024-09-11 08:23:56 UTC
README
使用此库通过HTTP从eappointment API获取数据。
有关项目描述的详细信息,请参阅 https://gitlab.com/eappointment/eappointment
要求
- PHP 7.3+
安装
通常此模块由其他模块需要,不需要任何特殊安装。请将以下行添加到您的composer.json文件中
composer require eappointment/zmsclient
用法
$http = new \BO\Zmsclient\Http("https://eappointment.example.com/api/2");
$result = $http->readGetResult('/status/');
$entity = $result->getEntity();
var_dump($entity->version);
配置
设置默认的CURL选项,请使用以下行
\BO\Zmsclient\Psr7\Client::$curlopt = [
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT => 3,
//CURLOPT_VERBOSE => true,
];
测试
如果您想运行测试,则需要docker-compose。测试需要一个HTTP服务器来响应此库发出的HTTP调用。
运行以下命令
docker-compose up
docker-compose启动模拟服务器,等待10秒后开始单元测试。测试完成后,模拟服务器仍然运行。如果有失败,您需要检查可能的HTTP调用。这里有一个端口转发,您可以在http://localhost:8082/下查看调用。