Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jongotlin/hogia


https://github.com/jongotlin/hogia

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

### Create Hogia Lön Plus xml document

Install with composer: `composer require jongotlin/hogia`

```php
$fileInfo = new \JGI\Hogia\Model\FileInfo();
$fileInfo->setCompanyName('Foo company');
$payTypeInstruction = new \JGI\Hogia\Model\PayTypeInstruction('111', 'A', '123');
$hogiaDocument = (new \JGI\Hogia\Generator())->createHogiaDocument($fileInfo, [$payTypeInstruction]);

echo $hogiaDocument->saveXML()
```