PHPackages                             ch2877/swiss-payment - 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. ch2877/swiss-payment

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

ch2877/swiss-payment
====================

PHP library to generate Swiss pain.001 messages (complies with ISO-20022)

v2.0.0(4y ago)8111.4k↓35.7%6[3 issues](https://github.com/ch2877/swiss-payment/issues)[2 PRs](https://github.com/ch2877/swiss-payment/pulls)MITPHPPHP &gt;=7.2|^8.0CI passing

Since Jan 21Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/ch2877/swiss-payment)[ Packagist](https://packagist.org/packages/ch2877/swiss-payment)[ Docs](https://github.com/ch2877/swiss-payment)[ RSS](/packages/ch2877-swiss-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (14)Used By (0)

SwissPayment
============

[](#swisspayment)

[![Build Status](https://github.com/ch2877/swiss-payment/actions/workflows/tests.yml/badge.svg)](https://github.com/ch2877/swiss-payment/actions)[![Tested on PHP PHP 7.2, 7.3, 7.4, 8.0](https://camo.githubusercontent.com/2af7b101aa12f694a70eec664264643ff289d85536ba63dc12e2c65edb8ad3ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7465737465642532306f6e2d372e32253230253743253230372e33253230253743253230372e34253230253743253230382e302532302d627269676874677265656e2e7376673f6d61784167653d32343139323030)](https://github.com/ch2877/swiss-payment/actions?query=workflow%3ATest)

**SwissPayment** is a PHP library to generate Swiss pain.001 XML messages (complies with ISO-20022).

Installation
------------

[](#installation)

Just install [Composer](http://getcomposer.org) and run `composer require ch2877/swiss-payment` in your project directory.

Usage
-----

[](#usage)

To get a basic understanding on how the messages are structured, take a look [the resources](#further-resources) mentioned below. The following example shows how to create a message containing two transactions:

```
