https://github.com/pgrimaud/cegid-y2-sdk
CEGID / Y2 - SDK
https://github.com/pgrimaud/cegid-y2-sdk
cegid php sdk
Last synced: 12 months ago
JSON representation
CEGID / Y2 - SDK
- Host: GitHub
- URL: https://github.com/pgrimaud/cegid-y2-sdk
- Owner: pgrimaud
- License: mit
- Created: 2019-08-06T13:33:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T10:12:26.000Z (over 2 years ago)
- Last Synced: 2025-06-24T13:19:17.906Z (about 1 year ago)
- Topics: cegid, php, sdk
- Language: PHP
- Size: 103 KB
- Stars: 8
- Watchers: 6
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CEGID / Y2 - SDK
Consume CEGID/Y2's SOAP API.
## Requirements
- PHP >= 5.6
- Package php-soap (ext-soap extension)
## Installation
```
composer require pgrimaud/cegid-y2-sdk
```
## Basic usage
Hello world :
```php
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.