smartprax / medidoc
Laravel 包,用于 Medidoc 服务。
1.0.2
2024-04-12 08:29 UTC
Requires
- php: ^8.1
- ext-dom: *
- ext-simplexml: *
- ext-soap: *
- guzzlehttp/guzzle: ^7.5
- illuminate/contracts: ^10.0
- lorisleiva/laravel-actions: ^2.5
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.9
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- spatie/laravel-ray: ^1.26
- wulfheart/laravel-actions-ide-helper: ^0.4.0
README
一个用于使用 Medidoc API 的 Laravel 包。
您需要一个账户来访问文档和使用 API。
安装
composer require smartprax/medidoc
配置
在 .env
中设置以下变量
MEDIDOC_ENDPOINT="" # Defaults to 'https://test.medidoc.ch/webservices/MedidocSoapAccessV2.asmx?WSDL' MEDIDOC_GLN="" MEDIDOC_PASSWORD=""
测试
将 phpunit.xml.dist
复制到 phpunit.xml
并设置环境变量
<env name="MEDIDOC_GLN" value="" /> <env name="MEDIDOC_PASSWORD" value="" />
运行测试
composer test
使用
方法(SOAP 函数)可以在 Smartprax\Medidoc\Methods
命名空间中找到,并作为 Actions 实现。
这意味着您可以调用静态 run
方法,例如。
$can_connect = CheckConnection::run(); $insuranceListResponse = GetInsuranceList::run( new ArrayOfNameValue([ new NameValue('Canton', 'AG'), ]) )
许可证
MIT 许可证(MIT)。请参阅 许可证文件 以获取更多信息。