PHPackages                             codebar-ag/laravel-postfinance-b2b - 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. codebar-ag/laravel-postfinance-b2b

ActiveLibrary[API Development](/categories/api)

codebar-ag/laravel-postfinance-b2b
==================================

B2B Service integration for Laravel

v12.0(2mo ago)12.9k1[4 issues](https://github.com/codebar-ag/laravel-postfinance-b2b/issues)[1 PRs](https://github.com/codebar-ag/laravel-postfinance-b2b/pulls)MITPHPPHP 8.2.\*|8.3.\*|8.4.\*CI failing

Since Nov 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/codebar-ag/laravel-postfinance-b2b)[ Packagist](https://packagist.org/packages/codebar-ag/laravel-postfinance-b2b)[ Docs](https://github.com/codebar-ag/laravel-postfinance-b2b)[ RSS](/packages/codebar-ag-laravel-postfinance-b2b/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (36)Versions (17)Used By (0)

[![](https://camo.githubusercontent.com/d4b58fcc881da7b692073912a41b76b9eeccb235b45deb84558c296ced85e4b0/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506f737466696e616e63652532304232422e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636f64656261722d61672532466c61726176656c2d706f737466696e616e63652d623262267061747465726e3d63697263756974426f617264267374796c653d7374796c655f32266465736372697074696f6e3d416e2b6f70696e696f6e617465642b7761792b746f2b696e746567726174652b706f737466696e616e63652d6232622b776974682b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313530707826696d616765733d646f63756d656e742d646f776e6c6f6164267769647468733d35303026686569676874733d353030)](https://camo.githubusercontent.com/d4b58fcc881da7b692073912a41b76b9eeccb235b45deb84558c296ced85e4b0/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506f737466696e616e63652532304232422e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636f64656261722d61672532466c61726176656c2d706f737466696e616e63652d623262267061747465726e3d63697263756974426f617264267374796c653d7374796c655f32266465736372697074696f6e3d416e2b6f70696e696f6e617465642b7761792b746f2b696e746567726174652b706f737466696e616e63652d6232622b776974682b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313530707826696d616765733d646f63756d656e742d646f776e6c6f6164267769647468733d35303026686569676874733d353030)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6af2c833d5e4e4125000d864660f7117bbb42c721a2e5be43c464b30ed7e0c20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656261722d61672f6c61726176656c2d706f737466696e616e63652d6232622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-postfinance-b2b)[![GitHub-Tests](https://github.com/codebar-ag/laravel-postfinance-b2b/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-postfinance-b2b/actions/workflows/run-tests.yml)[![GitHub Code Style](https://github.com/codebar-ag/laravel-postfinance-b2b/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/codebar-ag/laravel-postfinance-b2b/actions/workflows/fix-php-code-style-issues.yml)[![Total Downloads](https://camo.githubusercontent.com/643753274e8ab123dd894c73ecaacfa76e973f6c80479e40d90c803351b44a58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656261722d61672f6c61726176656c2d706f737466696e616e63652d6232622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codebar-ag/laravel-postfinance-b2b)

This package was developed to give you a quick start to communicate with the PostFinance B2B REST API.

💡 What is PostFinance B2B?
--------------------------

[](#-what-is-postfinance-b2b)

PostFinance B2B is a digital interface for all your invoices where you can send and receive your invoices electronically.

🛠 Requirements
--------------

[](#-requirements)

PackagePHPLaravelv12.0.0^8.2 - ^8.412.xv11.0.0^8.2 - ^8.311.x⚙️ Installation
---------------

[](#️-installation)

You can install the package via composer:

```
composer require codebar-ag/laravel-postfinance-b2b
```

Add the following environment variables to your `.env` file:

```
POSTFINANCE_B2B_USERNAME=
POSTFINANCE_B2B_PASSWORD=
```

🏗 Usage
-------

[](#-usage)

Invoice download web services provided by PostFinance

🚧 Testing
---------

[](#-testing)

Copy your own phpunit.xml-file.

```
cp phpunit.xml.dist phpunit.xml
```

Modify environment variables in the phpunit.xml-file:

```

```

Run the tests:

```
./vendor/bin/pest
```

📝 Changelog
-----------

[](#-changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

✏️ Contributing
---------------

[](#️-contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

```
POSTFINANCE_B2B_USERNAME=xxxxx POSTFINANCE_B2B_PASSWORD='XXXXX' POSTFINANCE_B2B_DEBUG=true composer test
```

### Code Style

[](#code-style)

```
./vendor/bin/pint
```

🧑‍💻 Security Vulnerabilities
----------------------------

[](#‍-security-vulnerabilities)

Please review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.

🙏 Credits
---------

[](#-credits)

- [Sebastian Bürgin-Fix](https://github.com/StanBarrows)
- [All Contributors](../../contributors)
- [Skeleton Repository from Spatie](https://github.com/spatie/package-skeleton-laravel)
- [Laravel Package Training from Spatie](https://spatie.be/videos/laravel-package-training)

🎭 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance75

Regular maintenance activity

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 67.5% 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 ~70 days

Recently: every ~1 days

Total

13

Last Release

44d ago

Major Versions

v0.3 → v11.02024-11-13

v0.1.0 → v12.02026-03-07

PHP version history (3 changes)v0.1PHP ^8.2

v11.0PHP &gt;=8.2

v0.1.0PHP 8.2.\*|8.3.\*|8.4.\*

### Community

Maintainers

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

---

Top Contributors

[![StanBarrows](https://avatars.githubusercontent.com/u/10268813?v=4)](https://github.com/StanBarrows "StanBarrows (27 commits)")[![RhysLees](https://avatars.githubusercontent.com/u/43909932?v=4)](https://github.com/RhysLees "RhysLees (12 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (1 commits)")

---

Tags

laravelpackagephppostfinancelaravelb2bpostfinancecodebar-aglaravel-postfinance-b2b

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/codebar-ag-laravel-postfinance-b2b/health.svg)

```
[![Health](https://phpackages.com/badges/codebar-ag-laravel-postfinance-b2b/health.svg)](https://phpackages.com/packages/codebar-ag-laravel-postfinance-b2b)
```

###  Alternatives

[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)

PHPackages © 2026

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