ameax / datev-xml
Package to generate DATEV xml files
Fund package maintenance!
ameax
Installs: 3 837
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
- ameax/xml-validator: ^1.0
- nesbot/carbon: ^2.67
- sabre/xml: ^4.0
- spatie/temporary-directory: ^2.1
Requires (Dev)
- laravel/pint: ^1.2
- pestphp/pest: ^1.20
- phpstan/phpstan: ^1.10
- spatie/ray: ^1.28
README
This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require ameax/datev-xml
Usage
use Ameax\Datev\DataObjects\DatevAccountLedgerData; use Ameax\Datev\DataObjects\DatevDocumentData; use Ameax\Datev\DataObjects\DatevRepositoryData; use Ameax\Datev\Zip; use Carbon\Carbon; $datevDocumentData = new DatevDocumentData(); $ledgerData = new DatevAccountLedgerData( consolidatedDate: new Carbon('2023-06-14'), consolidatedDeliveryDate: new Carbon('2023-06-14'), consolidatedInvoiceId: 'RE12345', customerName: 'ARANES', customerCity: 'Aufhausen', shipFromCountry: 'DE', accountName: 'ARANES Aufhausen', dueDate: new Carbon('2023-07-01'), bpAccountNo: '12345' ); $ledgerData->addAccountsReceivableLedger( amount: 119.00, accountNo: '8400', information: 'Software', bookingText: 'Umsatz 19%' ); $ledgerData->addAccountsReceivableLedger( amount: 214.00, accountNo: '8300', information: 'Bücher', bookingText: 'Umsatz 7%' ); $datevDocumentData->buildAccountsReceivableLedger( datevAccountLedgerData: $ledgerData, filePaths : ['path-to-invoice.pdf'] ); $datevRepositoryData = new DatevRepositoryData(); $datevDocumentData->addSEPAFile( nameWithExtension : 'sepa-2023-12345.xml', filePath : 'path-to-sepafile.xml', date : new Carbon('2023-05-01'), datevRepositoryData: $datevRepositoryData); $zipPath = $datevDocumentData->generateZip();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.