vallbo / soap-service-layer
SOAP service layer
Installs: 6 785
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- ext-json: *
- ext-soap: *
- psr/log: ^1.1
- psr/simple-cache: ^1.0
Requires (Dev)
- jakub-onderka/php-console-highlighter: ^0.3.2
- jakub-onderka/php-parallel-lint: ^0.9.2
- jakub-onderka/php-var-dump-check: ^0.3
- phpmd/phpmd: ^2.6
- phpstan/phpstan: ^0.11
- phpunit/phpunit: ^6.3
- sebastian/phpcpd: ^3.0
- slevomat/coding-standard: ^4.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2025-03-23 22:09:09 UTC
README
Service Layer vendor, for SOA communication (SOAP).
Installation
For installation use composer:
composer require vallbo/soap-service-layer
Adapters
Vallbo\SoapServiceLayer\Adapter\BasicAdapter
Configuration
- dependencies
- soapClientFactory - Vallbo\SoapServiceLayer\Adapter\SoapClientFactoryInterface - factory for creating SOAP client.
- responseFactory - Vallbo\SoapServiceLayer\Response\ResponseFactoryInterface - response factory for creating specific response.
- logger - if you want log what is going on in adapter, provide your logger service (PSR-3).
- cache - if you want cache responses, provide your cache service (PSR-16).
- cacheTTL - cache TTL for cache items.
Exception
SoapFault is wrapped to Vallbo\SoapServiceLayer\Exception\SoapException. You can find SoapFault in previous exception in SoapException object.
Response
Response returned by adapter implements Vallbo\SoapServiceLayer\Response\SoapResponseInterface.
We provide default response object Vallbo\SoapServiceLayer\Response\SoapResponse and default response factory Vallbo\SoapServiceLayer\Response\ResponseFactory for faster implementation.