PHPackages                             dvsoftsrl/php-cbi-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. [API Development](/categories/api)
4. /
5. dvsoftsrl/php-cbi-xml

ActiveLibrary[API Development](/categories/api)

dvsoftsrl/php-cbi-xml
=====================

Fluent builder for CBI CBIPaymentRequest.00.04.01 with XML export

1.0.3(8mo ago)033↓93.8%MITPHPPHP &gt;=8.1CI passing

Since Oct 9Pushed 8mo agoCompare

[ Source](https://github.com/dvsoftsrl/php-cbi-xml)[ Packagist](https://packagist.org/packages/dvsoftsrl/php-cbi-xml)[ RSS](/packages/dvsoftsrl-php-cbi-xml/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

dvsoftsrl/php-cbi-xml
=====================

[](#dvsoftsrlphp-cbi-xml)

Fluent builder per generare flussi di bonifico CBI conformi a PaymentRequest.00.04.01 ed esportarli in XML.

[![Latest Version on Packagist](https://camo.githubusercontent.com/e8c807d302d4d227af9a3a8a5971d00c15e6cf6e70d5a2446919a47305abe956/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6476736f667473726c2f7068702d6362692d786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dvsoftsrl/php-cbi-xml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/346f8eaba0499233cb05312d3128ecf63fad50c95b405d772ec43d10f0f5c6ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6476736f667473726c2f7068702d6362692d786d6c2f63692e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dvsoftsrl/php-cbi-xml/actions?query=workflow%3Aci+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/23a9e804153422b8c98e84396185e415d766bf61fd2467fe08068b5dbfa0f6c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6476736f667473726c2f7068702d6362692d786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dvsoftsrl/php-cbi-xml)

Installazione
-------------

[](#installazione)

```
composer require dvsoftsrl/php-cbi-xml
```

Utilizzo
--------

[](#utilizzo)

```
use DvSoft\PhpCbiXml\Support\Facade;

$request = Facade::createPaymentRequest('CBIPaymentRequest.00.04.01');

// initiatingPartyCUC (CUC CBI) e debtorAgentMemberId (ABI) sono OBBLIGATORI
Facade::addPaymentInfo($request, 'pagamentoFatture', [
    'id' => date('d/m/y-H.i'),
    'debtorName' => 'AZIENDA DEBITORE',
    'debtorAccountIBAN' => 'IT14O0300203280547974125187',
    'batchBooking' => true,
    'requestedExecutionDate' => '2025-01-02',
    'initiatingPartyName' => 'AZIENDA DEBITORE',
    'initiatingPartyCUC' => '0123456Z', // CUC CBI
    // opzionale: issuer per InitgPty/Id/OrgId/Othr
    // 'initiatingPartyIssuer' => 'CBI',
    'debtorAgentMemberId' => '03069012345', // ABI banca debitore
]);

Facade::addTransfer($request, 'pagamentoFatture', [
    'amount' => 12345, // centesimi
    'creditorIban' => 'IT26W0300203280876486588966',
    'creditorName' => 'ALFA SRL',
    'remittanceInformation' => 'Pagamento fattura 123 del 01/01/2025',
]);

$xml = Facade::asXML($request);
```

### Utilizzo senza Facade

[](#utilizzo-senza-facade)

```
use DvSoft\PhpCbiXml\PaymentRequest\PaymentRequest;
use DvSoft\PhpCbiXml\PaymentRequest\PaymentInfo;
use DvSoft\PhpCbiXml\PaymentRequest\Transfer;

$request = PaymentRequest::create('CBIPaymentRequest.00.04.01');

$pmtInfo = new PaymentInfo('id-pag', 'AZIENDA DEBITORE', 'IT14O0300203280547974125187');
$pmtInfo->setRequestedExecutionDate('2025-01-02');
$pmtInfo->setInitiatingParty('AZIENDA DEBITORE', '0123456Z'); // CUC CBI obbligatorio
$pmtInfo->setDebtorAgentMemberId('03069012345'); // ABI obbligatorio

$request->addPaymentInfo('pagamentoFatture', $pmtInfo);

$transfer = new Transfer(12345, 'IT26W0300203280876486588966', 'ALFA SRL', 'Pagamento fattura 123 del 01/01/2025');
$request->addTransfer('pagamentoFatture', $transfer);

$xml = $request->asXML();
```

Estendibilità
-------------

[](#estendibilità)

La libreria è progettata per supportare nuovi tracciati aggiungendo nuovi generatori e modelli sotto `src/`. PaymentRequest.00.04.01 è il primo tracciato supportato.

Test
----

[](#test)

```
composer install
vendor/bin/phpunit
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance58

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c86d96ea972a3b99a7b112e3c0bc63922fac14275b740177422496ab6cbf7e7?d=identicon)[luca-dellorto](/maintainers/luca-dellorto)

---

Top Contributors

[![luca-dellorto](https://avatars.githubusercontent.com/u/105433803?v=4)](https://github.com/luca-dellorto "luca-dellorto (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dvsoftsrl-php-cbi-xml/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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