naugrim / wortmann-soap-api
Allows to talk to the API of Wortmann AG
2.1.1
2026-05-29 13:49 UTC
Requires
- php: ^8.4
- ext-libxml: *
- ext-soap: *
- guzzlehttp/guzzle: ^7.4
- illuminate/support: ^11.0|^12.0|^13
- phpro/soap-client: ^6.0
- symfony/cache: ^7.0|^8.0
Requires (Dev)
- ext-dom: *
- laminas/laminas-code: ^4.17
- mockery/mockery: ^1.6
- orchestra/testbench: ^11.1
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.2
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-mockery: ^2.0
- phpunit/phpunit: ^13.1
README
Semantic Versioning and git-flow are used.
Please create pull-requests against the develop-branch.
Installation
composer require naugrim/wortmann-soap-api
Laravel
The package gets auto-discovered. Set WORTMANN_SOAP_API_USERNAME and WORTMANN_SOAP_API_PASSWORD in your .env.
Optional: Publish the config files with:
php artisan vendor:publish --provider='Naugrim\WortmannSoapApi\Provider\WortmannSoapApiProv'
Usage
Laravel
An instance of the API client can be injected into your Controller (for example):
<?php use Naugrim\WortmannSoapApi\Client\Type\GetStockAndPriceInformationByProductIds; use Naugrim\WortmannSoapApi\Contracts\WortmannSoapApi; class MyController { /** * @var WortmannSoapApi */ protected $client; /** * @param WortmannSoapApi $client */ public function __construct(WortmannSoapApi $client) { $this->client = $client; } public function getStockInformation(array $productIds) { $response = $this->client->request( GetStockAndPriceInformationByProductIds::class, [6466010, 6466011] ); // do something with the response dump($response->entry()); } }
Standalone
See demo/index.php.