https://github.com/jongotlin/hogia
https://github.com/jongotlin/hogia
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongotlin/hogia
- Owner: jongotlin
- Created: 2021-11-05T08:16:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-08T06:02:26.000Z (almost 3 years ago)
- Last Synced: 2025-03-14T06:34:43.261Z (4 months ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
```