jongotlin / paxml
Installs: 5 738
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^8.0
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();