sbaumeister / tecdoc-client-php
A TecDoc Webservice API client
v0.2.0
2022-12-11 21:17 UTC
Requires
- php: ^7.3
- ext-json: *
- guzzlehttp/guzzle: ^6.5
- netresearch/jsonmapper: ^2.1
Requires (Dev)
- goetas-webservices/xsd2php: ^0.3.11
- phpunit/phpunit: ^9.1
README
A TecDoc Webservice API client written in PHP.
The DTO classes are generated with xsd2php using the TecDoc SOAP XSD as input.
This project is licensed under the terms of the GNU Lesser General Public License v3.0.
Install
composer require sbaumeister/tecdoc-client-php
Usage
<?php use Baumeister\TecDocClient\Client; use Baumeister\TecDocClient\Generated\GetAmBrands; $client = new Client('API_KEY', 'PROVIDER_ID'); $params = (new GetAmBrands()) ->setLang('de') ->setArticleCountry('de'); $response = $client->getAmBrands($params); $brands = $response->getData();
TODOs
- Better tests
- Add status table for implemented API functions to README