Download the PHP package gschurgast/eudr-api-client without Composer
On this page you can find all versions of the php package gschurgast/eudr-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gschurgast/eudr-api-client
More information about gschurgast/eudr-api-client
Files in gschurgast/eudr-api-client
Download gschurgast/eudr-api-client
More information about gschurgast/eudr-api-client
Files in gschurgast/eudr-api-client
Vendor gschurgast
Package eudr-api-client
Short Description Minimal EUDR SOAP client utilities and functional test
License MIT
Package eudr-api-client
Short Description Minimal EUDR SOAP client utilities and functional test
License MIT
Please rate this library. Is it a good library?
Informations about the package eudr-api-client
EUDR API SOAP Client (PHP)
This repository provides a minimal, typed PHP client for the European Union Deforestation Regulation (EUDR) SOAP services. It exposes small service classes, request/response DTOs, and a functional PHPUnit test. Internally it uses JMS Serializer for consistent array<->object transformations instead of ad‑hoc toArray/fromSoap code.
What's included
- Services (src/Services):
- EudrEchoClient
- EudrSubmissionClient
- EudrRetrievalClient
- EudrClient facade to access the right service by ModeEnum
- Request/Response DTOs (src/Dto) with JMS Serializer attributes
- Requests: SubmitDdsRequest, AmendDdsRequest, GetDdsInfoRequest, GetStatementByIdentifiersRequest, GetReferenceDdsRequest, etc.
- Responses: TestEchoResponse, SubmitDdsResponse, AmendDdsResponse, RetractDdsResponse, GetDdsInfoResponse, GetStatementByIdentifiersResponse, GetReferenceDdsResponse
- Typed sub-objects in src/Dto/Type (StatementType, CommodityType, OperatorType, StatusType, ...)
- Functional tests using PHPUnit: tests/Functional/DemoTest.php
Requirements
- PHP >= 8.1
- ext-soap, ext-dom
- Composer
Install
- make init
Running tests or acceptance tests
-
Edit your .env file to provide your credentials.
- make test
Create an EUDR client
- Choose the environment via src\Enum\EnvironmentEnum (ACCEPTANCE or PRODUCTION).
-
Provide your credentials via environment variables (recommended for local dev put them in a .env file at the project root):
- Instantiate the high-level client and pass credentials read from env:
Usage examples
Echo
Submit
Submit DDS Request
Amend DDS Request
Retract DDS Request
Retrieval
Get DDS Info Request
Get DDS Info by Internal Reference Number
Get Statement by DDS Identifier
Get Reference DDS (No test has been performed on this method)
Functional tests
- tests/Functional/DemoTest.php builds DTOs from fixtures (tests/fixtures/payloads.yaml) and can perform real calls when credentials are valid.
- Use composer run test:functional to execute the suite.
Notes
- EudrEchoClient operations must not be used in production environments per EUDR rules.
- Service methods return dedicated Response DTOs mapping SOAP responses to typed PHP objects.
License
MIT
All versions of eudr-api-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-dom Version *
ext-soap Version *
robrichards/wse-php Version ^2.0
symfony/yaml Version ^7.0
webmozart/assert Version ^1.12
jms/serializer Version ^3.31
ext-dom Version *
ext-soap Version *
robrichards/wse-php Version ^2.0
symfony/yaml Version ^7.0
webmozart/assert Version ^1.12
jms/serializer Version ^3.31
The package gschurgast/eudr-api-client contains the following files
Loading the files please wait ...