codebar-ag / laravel-postfinance-b2b
B2B Service integration for Laravel
Package info
github.com/codebar-ag/laravel-postfinance-b2b
pkg:composer/codebar-ag/laravel-postfinance-b2b
Requires
- php: 8.2.*|8.3.*|8.4.*
- ext-soap: *
- ext-xsl: *
- guzzlehttp/guzzle: ^7.8
- illuminate/contracts: ^12.0
- monolog/monolog: ^3.8
- nyholm/psr7: ^1.8
- php-http/logger-plugin: ^1.4.0
- php-soap/psr18-wsse-middleware: ^2.5.0 <2.7.0
- phpro/soap-client: ^3.4.1
- spatie/laravel-package-tools: ^1.19
Requires (Dev)
- larastan/larastan: ^v3.1
- laravel/pint: ^1.21
- orchestra/testbench: ^10.0
- pestphp/pest: ^3.7
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.39
- dev-main
- v12.0
- v11.0
- v0.3
- v0.2.0
- v0.1.0
- dev-dependabot/github_actions/actions/checkout-6
- dev-dependabot/github_actions/aglipanci/laravel-pint-action-2.6
- dev-dependabot/github_actions/dependabot/fetch-metadata-2.5.0
- dev-dependabot/github_actions/actions/upload-artifact-7
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-7
- dev-feture-laravel-12-v2
- dev-feature-laravel-12
This package is auto-updated.
Last update: 2026-03-07 13:28:48 UTC
README
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.