Skip to content

Commit

Permalink
Update EBICS REST API Standalone Server v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-svirin committed Oct 25, 2024
1 parent 0081ced commit 1d0cb12
Show file tree
Hide file tree
Showing 336 changed files with 34,167 additions and 5,039 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/doc export-ignore
/docker export-ignore
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/Makefile export-ignore
/phpcs.xml export-ignore
/phpmd.xml export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
/phpmd.xml export-ignore
/_config.yml export-ignore
/.github export-ignore
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the dev branch
push:
branches: [ 2.x, 1.x ]
pull_request:
branches: [ 2.x, 1.x ]
release:
# Only use the types keyword to narrow down the activity types that will trigger your workflow.
types: [published, created, edited]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Analyse code by PHPStan
phpstan:
name: PHPStan
runs-on: ubuntu-latest
# This workflow is only of value to the andrew-svirin/ebics-client-php repository and
# would always fail in forks
if: github.repository == 'andrew-svirin/ebics-client-php'
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Composer Install
run: composer install --no-scripts --no-progress --ansi
- name: Run phpstan
run: composer code-analyse

# Style code by Code Sniffer
phpcs:
name: PHPCS
runs-on: ubuntu-latest
# This workflow is only of value to the andrew-svirin/ebics-client-php repository and
# would always fail in forks
if: github.repository == 'andrew-svirin/ebics-client-php'
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Composer Install
run: composer install --no-scripts --no-progress --ansi
- name: Run phpcs
run: composer code-style

# Test code by PHPUnit
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
# This workflow is only of value to the andrew-svirin/ebics-client-php repository and
# would always fail in forks
if: github.repository == 'andrew-svirin/ebics-client-php'
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Composer Install
run: composer install --no-scripts --no-progress --ansi
- name: Run phpunit
run: composer code-test
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## 2.3

* Add `SPR` order type

## 2.2

* Change signature for KeyringManagerInterface. Attributes `IsCertified`, `Version` moved from Bank to Keyring.
* Change signature for EbicsInterface. Attributes `X509Generator`, moved from EbicsClient to Keyring `certificateGenerator`.
* Remove UTF-8 encoding for content.
* Support EBICS TS mode.
* Add 'xml_files' parser for order data.
* Updated BTD method signature.
* Added support for EBICS version 2.4.
* Added option to specify custom PDF Factory.
* Changed pdf generator to FPDF.
* Add methods `XEK` order type for EBICS 3.0
* Add method to check keyring.
* Add method to change keyring password.
* Changed logic for certificate storing into keyring.

## 2.1

* Up supported PHP version to >= 7.4
* Add `FUL`, `H3K` order type for EBICS 2.5
* Add methods `YCT`, `ZSR`, `Z54` order type for EBICS 3.0
* Major update for keyring manager. Added Array & File keyring managers instead of keyring.
* Add responseHandler into ClientInterface
* Add $storageCallback for download methods that handle acknowledge.
* Fix UTF-8 encoding.
* Added CurlHttpClient and PsrHttpClient to use standard client.
* Updated AbstractX509Generator to handle custom options.
* Improved Bank-letter
* Fixed padding for encoding that caused problems for upload methods.
* Added XE3
* Fixed CCT, CDD builder.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
WIN_ETH_DRIVER := 'Ethernet adapter Ethernet 3'

ifdef WIN_ETH_DRIVER
WIN_ETH_IP := $(shell ipconfig.exe | grep ${WIN_ETH_DRIVER} -A3 | cut -d':' -f 2 | tail -n1 | sed -e 's/\s*//g')
endif

docker-up u:
cd docker && docker-compose -p ebics-client-php up -d;
@if [ "$(WIN_ETH_IP)" ]; then cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php sh -c "echo '$(WIN_ETH_IP) host.docker.internal' >> /etc/hosts"; fi

docker-down d:
cd docker && docker-compose -p ebics-client-php down

docker-build:
cd docker && docker-compose -p ebics-client-php build --no-cache

docker-php php:
cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php /bin/bash

check:
cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php ./vendor/bin/phpcbf
cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php ./vendor/bin/phpcs
cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php ./vendor/bin/phpstan
cd docker && docker-compose -p ebics-client-php exec php-cli-ebics-client-php ./vendor/bin/phpunit
Loading

0 comments on commit 1d0cb12

Please # to comment.