codebar-ag/laravel-postfinance-b2b
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 careUse 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 |
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
- Sebastian Bürgin-Fix
- All Contributors
- Skeleton Repository from Spatie
- Laravel Package Training from Spatie
🎭 License
The MIT License (MIT). Please see License File for more information.
Related Packages
This is my package laravel-flysystem-cloudinary-nova
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v12.0 | 8.2.*| | ^12.0 | MIT | |
| v11.0 | >=8.2 | ^11.0 | MIT | |
| v0.11.0 | 8.2.*| | ^12.0 | MIT | |
| v0.10.0 | 8.2.*| | ^12.0 | MIT | |
| v0.9.0 | 8.2.*| | ^12.0 | MIT | |
| v0.8.0 | 8.2.*| | ^12.0 | MIT | |
| v0.7.0 | 8.2.*| | ^12.0 | MIT | |
| v0.6.0 | 8.2.*| | ^12.0 | MIT | |
| v0.5.0 | 8.2.*| | ^12.0 | MIT | |
| v0.4.0 | 8.2.*| | ^12.0 | MIT | |
| v0.3.0 | 8.2.*| | ^12.0 | MIT | |
| v0.2.0 | 8.2.*| | ^12.0 | MIT | |
| v0.1.0 | 8.2.*| | ^12.0 | MIT |