PHPackages                             thomasdseao/php-sepa-xml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. thomasdseao/php-sepa-xml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

thomasdseao/php-sepa-xml
========================

Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.

v1.0.0(3y ago)24.9k↓47.2%1MITPHPPHP &gt;=5.3.2

Since Sep 20Pushed 3y ago2 watchersCompare

[ Source](https://github.com/thomasdseao/php-sepa-xml)[ Packagist](https://packagist.org/packages/thomasdseao/php-sepa-xml)[ RSS](/packages/thomasdseao-php-sepa-xml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

#### This project is a FORK of no longer maintained repo :

[](#this-project-is-a-fork-of-no-longer-maintained-repo--httpsgithubcomdigitickphp-sepa-xml)

php-sepa-xml
============

[](#php-sepa-xml)

SEPA file generator for PHP.

Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer and Direct Debit.

The versions of the standard followed are:

- *pain.001.002.03* (or *pain.001.001.03*) for credits
- and *pain.008.002.02* (or *pain.008.001.02*) for debits

Institutions and associations that should accept this format:

- Deutsche Kreditwirtschaft
- Fédération bancaire française

However, always verify generated files with your bank before using!

(The package manage wiretransfer to currencies without decimals JPY,VND,KRW)

\##Installation ###Composer This library is available in packagist.org, you can add it to your project via Composer.

In the "require" section of your composer.json file:

Always up to date (bleeding edge, API *not* guaranteed stable)

```
"thomasdseao/sepa-xml" : "dev-master"
```

No namespaces, only bugfixes

```
"thomasdseao/sepa-xml" : "dev-no_namespace"
```

Specific minor version, API stability

```
"thomasdseao/sepa-xml" : "0.10.*"
```

\##Sample Usage DirectDebit with Factory

```
//Set the initial information
$directDebit = TransferFileFacadeFactory::createDirectDebit('test123', 'Me');

// create a payment, it's possible to create multiple payments,
// "firstPayment" is the identifier for the transactions
$directDebit->addPaymentInfo('firstPayment', array(
	'id' 					=> 'firstPayment',
	'creditorName' 			=> 'My Company',
	'creditorAccountIBAN'	=> 'FI1350001540000056',
	'creditorAgentBIC' 		=> 'PSSTFRPPMON',
	'seqType'				=> PaymentInformation::S_ONEOFF,
	'creditorId'			=> 'DE21WVM1234567890'
));
// Add a Single Transaction to the named payment
$directDebit->addTransfer('firstPayment', array(
	'amount'				=> '500',
	'debtorIban'			=> 'FI1350001540000056',
	'debtorBic'				=> 'OKOYFIHH',
	'debtorName'			=> 'Their Company',
	'debtorMandate'			=>  'AB12345',
	'debtorMandateSignDate'	=> '13.10.2012',
	'remittanceInformation'	=> 'Purpose of this direct debit'
));
// Retrieve the resulting XML
$directDebit->asXML();
```

\##Extended Usage Credit Transfer

```
// Create the initiating information
$groupHeader = new GroupHeader('SEPA File Identifier', 'Your Company Name');
$sepaFile = new CustomerCreditTransferFile($groupHeader);

$transfer = new CustomerCreditTransferInformation(
    '0.02', // Amount
    'FI1350001540000056', //IBAN of creditor
    'Their Corp' //Name of Creditor
);
$transfer->setBic('OKOYFIHH'); // Set the BIC explicitly
$transfer->setRemittanceInformation('Transaction Description');

// Create a PaymentInformation the Transfer belongs to
$payment = new PaymentInformation(
    'Payment Info ID',
    'FR1420041010050500013M02606', // IBAN the money is transferred from
    'PSSTFRPPMON',  // BIC
    'My Corp' // Debitor Name
);
// It's possible to add multiple Transfers in one Payment
$payment->addTransfer($transfer);

// It's possible to add multiple payments to one SEPA File
$sepaFile->addPaymentInformation($payment);

// Attach a dombuilder to the sepaFile to create the XML output
$domBuilder = DomBuilderFactory::createDomBuilder($sepaFile);

// Or if you want to use the format 'pain.001.001.03' instead
// $domBuilder = DomBuilderFactory::createDomBuilder($sepaFile, 'pain.001.001.03');

$domBuilder->asXml();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1336d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7817916?v=4)[Thomas](/maintainers/thomasdseao)[@thomasdseao](https://github.com/thomasdseao)

---

Top Contributors

[![thomasdseao](https://avatars.githubusercontent.com/u/7817916?v=4)](https://github.com/thomasdseao "thomasdseao (5 commits)")[![timpactifyo91](https://avatars.githubusercontent.com/u/147049410?v=4)](https://github.com/timpactifyo91 "timpactifyo91 (5 commits)")

---

Tags

xmlsepaBanking

### Embed Badge

![Health badge](/badges/thomasdseao-php-sepa-xml/health.svg)

```
[![Health](https://phpackages.com/badges/thomasdseao-php-sepa-xml/health.svg)](https://phpackages.com/packages/thomasdseao-php-sepa-xml)
```

###  Alternatives

[digitick/sepa-xml

Creates Single Euro Payments Area (SEPA) XML files for the Direct Debit and Credit Transfer operations.

2836.0M12](/packages/digitick-sepa-xml)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[abcaeffchen/sephpa

Generates SEPA files for credit transfers (pain.001.001.03, pain.001.002.03, pain.001.003.03, pain.001.001.09) and direct debit (pain.008.001.02, pain.008.002.02, pain.008.003.02, pain.008.001.08)

711.7M](/packages/abcaeffchen-sephpa)[dmitrirussu/php-sepa-xml-generator

Creates an XML file for a Single Euro Payments Area (SEPA) Direct Debit Payment.

5644.0k](/packages/dmitrirussu-php-sepa-xml-generator)[perryfaro/sepa

Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.

1148.7k](/packages/perryfaro-sepa)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
