web-atypique/cegid-y2-sdk-php8
最新稳定版本:1.0.0
Composer 安装命令:
composer require web-atypique/cegid-y2-sdk-php8
包简介
CEGID / Y2 - SDK - PHP8
README 文档
README
Forked from https://github.com/pgrimaud/cegid-y2-sdk
Consume CEGID/Y2's SOAP API.
Requirements
- PHP >= 8.1
- Package php-soap (ext-soap extension)
Installation
composer require web-atypique/cegid-y2-sdk-php8
Basic usage
Hello world :
<?php use Y2\ItemInventory\HelloWorld; use Y2\ItemInventory\ItemInventoryWcfService; use Y2\ItemInventory\RetailContext; $wsdl = ''; // WSDL interface $login = ''; // credentials for basic auth $password = ''; // credentials for basic auth $dbId = ''; // Y2 database ID $retailContext = new RetailContext(); $retailContext->setDatabaseId($dbId); $helloWorld = new HelloWorld('ZZZ', $retailContext); try { $client = new ItemInventoryWcfService($wsdl, [ 'login' => $login, 'password' => $password ]); $call = $client->HelloWorld($helloWorld)->getHelloWorldResult(); print_r($call); } catch (SoapFault $e) { echo "SOAP ERROR CALL : " . $e->getMessage() . "\n"; }
License
Licensed under the terms of the MIT License.
统计信息
- 总下载量: 282
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-21