1. Go to this page and download the library: Download wesselstam/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/ */
wesselstam / sepa-xml example snippets
use WesselStam\SepaXML\SepaXML;
// create instance
$oSEPA = new SepaXML();
// Set your collection destination information
$oSEPA->setCollectionDestination(
"Your company name,
"Your IBAN",
"Your BIC",
"Your Creditor ID"
);
// Set the direct debit date
$oSEPA->setDate("2017-07-11");
// Add one or more collections to the
// addCollection($sName, $sIBAN, $sBIC, $iAmount, $sDescription, $sSignedDate, $sMandateID)
$oSEPA->addCollection(
"Customer name",
"Customer IBAN",
"Customer BIC",
"Amount",
"Description",
"Mandate date",
"Mandate ID"
);
// output
echo $oSEPA->getXML();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.