Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jongotlin/hogia
https://github.com/jongotlin/hogia
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongotlin/hogia
- Owner: jongotlin
- Created: 2021-11-05T08:16:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-08T06:02:26.000Z (about 2 years ago)
- Last Synced: 2024-12-04T08:05:32.508Z (about 1 month ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- 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()
```