Only php-dom and php-soap dependency.
composer abryb/e-nadawca-client
<?php
use Abryb\ENadawca\ENadawcaClientFactory;
$client = ENadawcaClientFactory::createClient(
'https://e-nadawca.poczta-polska.pl/websrv/en.wsdl',
'username',
'password',
[
// additional \SoapClient options
]
);
$urzedyNadania = $client->getUrzedyNadania(new \Abryb\ENadawca\Type\GetUrzedyNadania());
look at bin/generate.php file