thomasdseao/php-sepa-xml
Composer 安装命令:
composer require thomasdseao/php-sepa-xml
包简介
Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.
README 文档
README
This project is a FORK of no longer maintained repo : https://github.com/digitick/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();
thomasdseao/php-sepa-xml 适用场景与选型建议
thomasdseao/php-sepa-xml 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.67k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 10 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「xml」 「sepa」 「Banking」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 thomasdseao/php-sepa-xml 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thomasdseao/php-sepa-xml 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 thomasdseao/php-sepa-xml 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.
Simple classes for creating SEPA transfer and direct debit xml files. No dependencies
This package parses and validates International Bank Account Number (IBAN).
Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.
Multishipping support for the Mollie Payment Module for Magento 2
Load DOM document safety
统计信息
- 总下载量: 5.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-20