jongotlin/paxml

Installs: 5 013

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:package

2.0.1 2022-05-12 05:36 UTC

This package is auto-updated.

Last update: 2024-05-12 10:26:16 UTC


README

Create Paxml documents

$paxmlGenerator = new PaxmlGenerator();
$paxml = new Paxml();
$header = new Header();
$paxml->setHeader($header);
$salaryTransaction = new SalaryTransaction('1', '1122334455', '123', 1.2);
$salaryTransaction->setUnitPrice(1000);
$paxml->addSalaryTransaction($salaryTransaction);

$config = new PaxmlConfig();
$config->setAnstIdPrefix('LL');

$paxmlDocument = $paxmlGenerator->createPaxmlDocument($paxml, $config);
echo $paxmlDocument->saveXML();