1. Go to this page and download the library: Download drei-d/laravel-sepa-xml library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drei-d / laravel-sepa-xml example snippets
return [
'from' => 'FROM EXAMPLE',
'iban' => 'IBAN EXAMPLE',
'bic' => 'BIC EXAMPLE',
'prefix' => 'PREFIX-EXAMPLE-',
// group transactions as a single transfer
'batch_booking' => false
];
return [
'from' => 'DREID-D DIREKTWERBUNG GMBH CO KG',
'iban' => 'DE02120300000000202051',
'bic' => 'BYLADEM1001',
'prefix' => '3D-INTERN-',
// group transactions as a single transfer
'batch_booking' => false
];
use DREID\LaravelSepaXml\Factories\TransactionFactory;
use DREID\LaravelSepaXml\Services\SepaFileCreationService;
$factory = app(TransactionFactory::class);
$service = app(SepaFileCreationService::class);
$transaction = $factory->transform(
'Max Mustermann', // account owner
'Test-Subject for Transaction', // subject
'DE02120300000000202051', // IBAN
'BYLADEM1001', // BIC
49.95 // amount in EUR
);
$service->save(
'local', // storage disk
'sepa.xml', // file name
'1', // transaction number, should be unique per export
[
$transaction
] // array of transactions you want to export
);