PHPackages                             itemvirtual/php-sepa-xml-generator - 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. itemvirtual/php-sepa-xml-generator

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

itemvirtual/php-sepa-xml-generator
==================================

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

1.0.8(8y ago)01.0k↓90.9%1GNUPHPPHP &gt;=5.3.2

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/itemvirtual/php-sepa-xml-generator)[ Packagist](https://packagist.org/packages/itemvirtual/php-sepa-xml-generator)[ RSS](/packages/itemvirtual-php-sepa-xml-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e61ee4fb3cc6efdcd457e13f283374ed6a328bbe617eb5c808ef8b82f8a49791/68747470733a2f2f7472617669732d63692e6f72672f646d6974726972757373752f7068702d736570612d786d6c2d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dmitrirussu/php-sepa-xml-generator)

PHP SEPA XML Generator v 1.0.8
==============================

[](#php-sepa-xml-generator-v-108)

Now in this release you are able todo SEPA CreditTransfer and DirDebit

Support: pain.008.001.02, pain.001.001.02

Guide ISO20022 SDD V1\_0 20122009

SEPA Direct Debit Core Scheme (SDD Core)
========================================

[](#sepa-direct-debit-core-scheme-sdd-core)

Single Euro Payments Area (SEPA)

The Single Euro Payments Area (SEPA) is a payment-integration initiative of the European Union for simplification of bank transfers denominated in euro. As of March 2012, SEPA consists of the 28 EU member states, the four members of the EFTA (Iceland, Liechtenstein, Norway and Switzerland) and Monaco.

Example of using
================

[](#example-of-using)

SEPA Direct Debit
=================

[](#sepa-direct-debit)

```
		//When you start to generate a SEPA Xml File, need to choose PAIN
		$directDebitTransaction = \SEPA\XMLGenerator::PAIN_008_001_02; // For Direct Debit transactions is By Defaut
		$creditTransfer = \SEPA\XMLGenerator::PAIN_001_001_02; //For Credit Transfer

		SEPA\Factory\XMLGeneratorFactory::createXmlGeneratorObject($directDebitTransaction)->addXmlMessage(
        	SEPA\Factory\XMLGeneratorFactory::createXMLMessage()
        		->setMessageGroupHeader(
        			SEPA\Factory\XMLGeneratorFactory::createXMLGroupHeader()
        				->setMessageIdentification(1)
        				->setInitiatingPartyName('Amazing SRL ???? ыаывпавпва '))
        		->addMessagePaymentInfo(
        			SEPA\Factory\XMLGeneratorFactory::createXMLPaymentInfo()
        				->setPaymentInformationIdentification(6222)
        				->setSequenceType('FRST')
        				->setCreditorAccountIBAN('MD24 AG00 0225 1000 1310 4168')
        				->setCreditorAccountBIC('AABAFI42')->setCreditorName('Amazing SRL')
        				->setCreditorSchemeIdentification('FR07ZZZ519993')
        				->setRequestedCollectionDate('2013-08-06')
						->setAggregatePerMandate(true) //Default Transaction aggregation option = true
        				->addDirectDebitTransaction( //First transaction
        					SEPA\Factory\XmlGeneratorFactory::createXMLDirectDebitTransaction()
        						->setInstructionIdentification(3)
        						->setEndToEndIdentification(3)
        						->setInstructedAmount(100.5)
        						->setDebtorName('Roy SRL')
        						->setDebitIBAN('FR14 2004 1010 0505 0001 3M02 606')
        						->setDebitBIC('AABAFI22') //Optional
        						->setMandateIdentification('SDD000000016PFX0713') //unique Identifier
        						->setDateOfSignature('2013-08-03')
        //						->setCurrency('EUR')
        						->setDirectDebitInvoice(122)
        				)->addDirectDebitTransaction( //Second transaction are the same client transaction
        					SEPA\Factory\XmlGeneratorFactory::createXMLDirectDebitTransaction()
        						->setInstructionIdentification(4)
        						->setEndToEndIdentification(4)
        						->setInstructedAmount(100.5)
        						->setDebtorName('Roy SRL')
        						->setDebitIBAN('FR14 2004 1010 0505 0001 3M02 606')
        						->setDebitBIC('AABAFI22') //Optional
        						->setMandateIdentification('SDD000000016PFX0713') //unique Identifier
        						->setDateOfSignature('2013-08-03')
        //						->setCurrency('EUR')
        						->setDirectDebitInvoice(122))
        				->addDirectDebitTransaction( //An other client Transaction
        					SEPA\Factory\XmlGeneratorFactory::createXMLDirectDebitTransaction()
        						->setInstructionIdentification(6)
        						->setEndToEndIdentification(6)
        						->setInstructedAmount(100.5)
        						->setDebtorName('ND SRL')
        						->setDebitIBAN('FR14 2004 1010 0505 0001 3M02 606')
        						->setDebitBIC('AABAFI22') //Optional
        						->setMandateIdentification('SDD000000016PFX0714') //unique Identifier
        						->setDateOfSignature('2013-08-03')
        //						->setCurrency('EUR')
        						->setDirectDebitInvoice(122))
        		)

        )->view()->save(realpath(__DIR__) . '/xml_files/sepa_test.xml');
```

SEPA Credit Transfer
====================

[](#sepa-credit-transfer)

```
	$xmlFile = SEPA\Factory\XMLGeneratorFactory::createXmlGeneratorObject(\SEPA\XMLGenerator::PAIN_001_001_02)->addXmlMessage(
			SEPA\Factory\XMLGeneratorFactory::createXMLMessage()->setMessageGroupHeader(
				SEPA\Factory\XMLGeneratorFactory::createXMLGroupHeader()
					->setMessageIdentification(1)
					->setInitiatingPartyName('Amazing SRL ???? ыаывпавпва'))
				->addMessagePaymentInfo(
					SEPA\Factory\XMLGeneratorFactory::createXMLPaymentInfo()
						->setAggregatePerMandate(false)
						->setPaymentInformationIdentification(6222)
						->setSequenceType('FRST')
						->setDebitorAccountIBAN('MD24 AG00 0225 1000 1310 4168')
						->setDebitorAccountBIC('AABAFI42')
						->setDebitorName('Amazing SRL')
						->setRequestedCollectionDate('2013-08-06')
						->addCreditTransferTransaction(
							SEPA\Factory\XmlGeneratorFactory::createXMLCreditTransferTransaction()
								->setInstructionIdentification(3)
								->setCreditInvoice(1223)
								->setInstructedAmount(100.5)
								->setBIC('AABAFI42')
								->setCreditorName('1222')
								->setIBAN('MD24 AG000225100013104168')
						)
						->addCreditTransferTransaction(
							SEPA\Factory\XmlGeneratorFactory::createXMLCreditTransferTransaction()
								->setInstructionIdentification(4)
								->setCreditInvoice(1223)
								->setInstructedAmount(50.5)
								->setBIC('AABAFI42')
								->setCreditorName('1222')
								->setIBAN('MD24 AG000225100013104168')
						)
						->addCreditTransferTransaction(
							SEPA\Factory\XmlGeneratorFactory::createXMLCreditTransferTransaction()
								->setInstructionIdentification(4)
								->setCreditInvoice(1223)
								->setInstructedAmount(25.5)
								->setBIC('AABAFI42')
								->setCreditorName('1222')
								->setIBAN('MD24 AG000225100013104168')
						)
			)
		)->save($fileExist = realpath(__DIR__) . '/xml_files/sepa_test.xml');

		$this->assertTrue(file_exists($fileExist));
```

XML File Result for SEPA Direct Debit
=====================================

[](#xml-file-result-for-sepa-direct-debit)

```

              123
              2013-08-03T10:30:02
              2
              110.80

                Amazing SRL STts yayvpavpva

              1
              DD
              false
              2
              110.80

                  SEPA

                  CORE

                FRST

              2013-08-03

                Amazing SRL

                  MD24AG000225100013104168

                  AABAFI42

              SLEV

                      FR07ZZZ519993

                        SEPA

                  1
                  2

                100.40

                    SDD000000016PFX0713
                    2013-08-03

                    AABAFI22

                  Roy SRL

                    FR1420041010050500013M02606

                  122

                  3
                  3

                10.40

                    SDD000000016PFX0714
                    2013-08-03

                    AABAFI42

                  Toy SRL

                    FR1420041010050500013M02606

                  1223

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 71.2% 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

Every ~550 days

Total

4

Last Release

2678d ago

PHP version history (2 changes)1.0.7PHP &gt;=5.3.2

v1.0.8.x-devPHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/c661af43bac4f574cfa73cee0f459791d0c789ffb21d6d27f1066f14b019d0c1?d=identicon)[itemvirtual](/maintainers/itemvirtual)

---

Top Contributors

[![dmitrirussu](https://avatars.githubusercontent.com/u/4028904?v=4)](https://github.com/dmitrirussu "dmitrirussu (121 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (11 commits)")[![underkaos](https://avatars.githubusercontent.com/u/52652563?v=4)](https://github.com/underkaos "underkaos (8 commits)")[![ruben-podadera](https://avatars.githubusercontent.com/u/4748531?v=4)](https://github.com/ruben-podadera "ruben-podadera (7 commits)")[![enginydigital](https://avatars.githubusercontent.com/u/13464419?v=4)](https://github.com/enginydigital "enginydigital (7 commits)")[![PhoneixS](https://avatars.githubusercontent.com/u/1279539?v=4)](https://github.com/PhoneixS "PhoneixS (6 commits)")[![raimon-segura](https://avatars.githubusercontent.com/u/5822498?v=4)](https://github.com/raimon-segura "raimon-segura (3 commits)")[![pemedina](https://avatars.githubusercontent.com/u/2750254?v=4)](https://github.com/pemedina "pemedina (1 commits)")[![perrier](https://avatars.githubusercontent.com/u/2690964?v=4)](https://github.com/perrier "perrier (1 commits)")[![gmaiztegi](https://avatars.githubusercontent.com/u/753673?v=4)](https://github.com/gmaiztegi "gmaiztegi (1 commits)")[![dragermrb](https://avatars.githubusercontent.com/u/11479696?v=4)](https://github.com/dragermrb "dragermrb (1 commits)")[![hcliff](https://avatars.githubusercontent.com/u/481457?v=4)](https://github.com/hcliff "hcliff (1 commits)")[![kervala](https://avatars.githubusercontent.com/u/983521?v=4)](https://github.com/kervala "kervala (1 commits)")[![nidhalBoughrara](https://avatars.githubusercontent.com/u/58168376?v=4)](https://github.com/nidhalBoughrara "nidhalBoughrara (1 commits)")

---

Tags

xmlsepaBankingdirdebitsepa-xmlsepa-dirdebitSDD

### Embed Badge

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

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

###  Alternatives

[dmitrirussu/php-sepa-xml-generator

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

5246.2k](/packages/dmitrirussu-php-sepa-xml-generator)[digitick/sepa-xml

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

2816.3M14](/packages/digitick-sepa-xml)[masterminds/html5

An HTML5 parser and serializer.

1.8k260.4M292](/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.8M](/packages/abcaeffchen-sephpa)[perryfaro/sepa

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

1149.7k](/packages/perryfaro-sepa)

PHPackages © 2026

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