Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Mar 3, 2025
2 parents 45b828d + 8bc4f91 commit dbf81b2
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 54 deletions.
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
.idea
.php_cs
.php_cs.cache
.php-cs-fixer.cache
.phpunit.result.cache
.phpunit.cache/
.phpunit.cache
.DS_STORE
build
composer.lock
coverage
phpunit.xml
psalm.xml
phpstan.neon
testbench.yaml
vendor
node_modules
phpstan.neon
/local
.phpactor.json
build
40 changes: 0 additions & 40 deletions .php-cs-fixer.dist.php

This file was deleted.

39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
## Usage
<img src="https://banners.beyondco.de/Laravel%20Postfinance%20B2B.png?theme=light&packageManager=composer+require&packageName=codebar-ag%2Flaravel-postfinance-b2b&pattern=circuitBoard&style=style_2&description=An+opinionated+way+to+integrate+postfinance-b2b+with+Laravel&md=1&showWatermark=0&fontSize=150px&images=document-download&widths=500&heights=500">

[![Latest Version on Packagist](https://img.shields.io/packagist/v/codebar-ag/laravel-postfinance-b2b.svg?style=flat-square)](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://img.shields.io/packagist/dt/codebar-ag/laravel-postfinance-b2b.svg?style=flat-square)](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?

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:

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

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

```bash
POSTFINANCE_B2B_USERNAME=
POSTFINANCE_B2B_PASSWORD=
```

## 🏗 Usage

Invoice download web services provided by PostFinance

Expand Down
3 changes: 1 addition & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ parameters:
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false

noEnvCallsOutsideOfConfig: false
9 changes: 7 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" backupGlobals="false"
bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false"
executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="CodebarAg Test Suite">
<testsuite name="codebar Solutions AG Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand All @@ -16,6 +20,7 @@
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<env name="APP_KEY" value="base64:F+mHMDBbavrsp/I3WYA5lDSwDJJI/0wQG4eM3csq/lo="/>
<env name="POSTFINANCE_B2B_WSDL" value="0"/>
<env name="POSTFINANCE_B2B_USERNAME" value="username"/>
<env name="POSTFINANCE_B2B_PASSWORD" value="password"/>
Expand Down

0 comments on commit dbf81b2

Please sign in to comment.