New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

codebar-ag/laravel-postfinance-b2b

B2B Service integration for Laravel
2,917 1

Larablocks Analysis

codebar-ag/laravel-postfinance-b2b works with Laravel 12 (latest release v12.0, Mar 7, 2026).

Laravel 11 in earlier releases.

Recommendation checks

Use with care

Use with care: meets 1 of 4 checks.

  • Latest release doesn't support Laravel 13, the current version
  • Released in the last 12 months (Jun 29, 2026)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Actively maintained
  • Last stable release: Jun 29, 2026.
  • 11 releases in the last 12 months.
  • First released: Nov 13, 2024.
  • 5 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require codebar-ag/laravel-postfinance-b2b
Latest Version:v12.0
PHP:8.2.*|8.3.*|8.4.*
Laravel:12
Older releases:11
License:MIT
Last Updated:Oct 31, 2026
Links: GitHub  ·  Packagist
Maintainer: codebar

Latest Version on Packagist GitHub-Tests GitHub Code Style Total Downloads

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

💡 What is PostFinance B2B?

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

🛠 Requirements

Package PHP Laravel
v12.0.0 ^8.2 - ^8.4 12.x
v11.0.0 ^8.2 - ^8.3 11.x

⚙️ 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

Invoice download web services provided by PostFinance

🚧 Testing

Copy your own phpunit.xml-file.

cp phpunit.xml.dist phpunit.xml

Modify environment variables in the phpunit.xml-file:

    <env name="POSTFINANCE_B2B_WSDL" value="wds"/>
    <env name="POSTFINANCE_B2B_CACHE_WSDL" value="wsdl"/>
    <env name="POSTFINANCE_B2B_USERNAME" value="username"/>
    <env name="POSTFINANCE_B2B_PASSWORD" value="password"/>
    <env name="POSTFINANCE_B2B_DEBUG" value="debug"/>

    <env name="POSTFINANCE_B2B_TESTS_PAYER_ID" value=""/>
    <env name="POSTFINANCE_B2B_TESTS_BILLER_ID" value=""/>
    <env name="POSTFINANCE_B2B_TESTS_TRANSACTION_ID" value=""/>
    <env name="POSTFINANCE_B2B_TESTS_FILE_TYPE" value="RGXMLSIG"/>

Run the tests:

./vendor/bin/pest

📝 Changelog

Please see CHANGELOG for more information on what has changed recently.

✏️ Contributing

Please see CONTRIBUTING for details.

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

Code Style

./vendor/bin/pint

🧑‍💻 Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

🙏 Credits

🎭 License

The MIT License (MIT). Please see License File for more information.

Related Packages

whatwedo/postfinance-e-payment

PHP library for handling PostFinance E-Payments

31,056 15
codebar-ag/laravel-flysystem-cloudinary-nova

This is my package laravel-flysystem-cloudinary-nova

17,487 0
avtocod/b2b-api-php-laravel

Laravel package for a working with B2B API service

26,753 7
codebar-ag/laravel-zammad

Zammad integration with Laravel

7,529 9
codebar-ag/laravel-bexio

Bexio integration with Laravel

5,826 4

Version History

Version Released PHP Laravel License
v12.0 8.2.*|8.3.*|8.4.* ^12.0 MIT
v11.0 >=8.2 ^11.0 MIT
v0.11.0 8.2.*|8.3.*|8.4.* ^12.0 MIT
v0.10.0 8.2.*|8.3.*|8.4.* ^12.0 MIT
v0.9.0 8.2.*|8.3.*|8.4.* ^12.0 MIT