Skip to content

jongotlin/paxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paxml

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();

About

Create Paxml documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages