Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
a604931
added functionality to retrieve standing orders
nemiah May 7, 2017
2e89943
added functionality to delete a standing order
nemiah May 8, 2017
5fc97db
added functionality to execute transfer
nemiah May 8, 2017
5f821c7
added functionality to execute transfer
nemiah May 8, 2017
6eff6f9
added functionality to execute transfer
nemiah May 8, 2017
ddf99c0
added functionality to execute SEPA direct debit
nemiah May 9, 2017
cae4119
improved error handling
nemiah May 18, 2017
4d0f74d
added detection for non-booked transactions
nemiah May 25, 2017
ea16d5c
replaced tan file with closure
nemiah Jun 5, 2017
208c57c
replaced tan file with closure
nemiah Jun 5, 2017
807db57
a lot of stuff :)
nemiah Jun 8, 2017
49dfbd3
Create composer.json
nemiah Jun 11, 2017
f19e0da
Create README.md
nemiah Jun 11, 2017
3c61476
Create README.md
nemiah Jun 11, 2017
4400081
Create README.md
nemiah Jun 11, 2017
53dbf6d
Create README.md
nemiah Jun 11, 2017
6cf307a
Create README.md
nemiah Jun 11, 2017
6bf754d
improved logging
nemiah Jun 11, 2017
ef3c62d
Merge branch 'master' of https://github.com/nemiah/phpFinTS
nemiah Jun 11, 2017
e303f3f
fixed HIRMG
nemiah Jun 11, 2017
9d490f5
minor fix
nemiah Jun 14, 2017
910b83c
minor fix
nemiah Jun 16, 2017
a23d434
added exception when no tan was received
nemiah Jul 4, 2017
2f38c1d
fixed @@
nemiah Aug 30, 2017
079e13c
fixed RD and RC
nemiah Sep 21, 2017
466d79a
Added cancellation
dennisoehme Sep 21, 2017
e202c04
added support for interrupted connection
nemiah Oct 1, 2017
4b55438
minor fix
nemiah Oct 13, 2017
36b9477
added EREF (end to end id) support
nemiah Nov 12, 2017
b3fce3e
synced comaptibility list with schindler83/fints-hbci-php
nemiah Nov 17, 2017
040b0b9
wait up to 2 min for tan
nemiah Dec 1, 2017
b9f4d01
patch
nemiah Jan 5, 2018
ff133b9
Merge commit '466d79ae994f417b5d2d4c3cdf57cb5ed8d81f1e'
Jan 25, 2018
a14fcfc
Add support for transaction codes
Jan 25, 2018
f065b94
Add getter for signed amount
Jan 25, 2018
5328db6
Remove type from setTransactionCode due to namespace issue with old php
Feb 6, 2018
a77b450
Fix gv code being fetch from incorrect field
Feb 6, 2018
d36b2bd
Fix some serious parsing issues
Feb 7, 2018
77473e6
Fix indention
Feb 8, 2018
5518236
Minor refactoring, improve tests
Feb 8, 2018
14bca4c
Solidify splitting, fixes VBKM '@@' separation without dash
Mar 2, 2018
d88824a
Fix parsing of @@ separated descriptions
Mar 2, 2018
a55691f
Fix regexp
Mar 2, 2018
8a3e65f
improved error handling
nemiah Jul 7, 2018
d8e2976
added interval option
nemiah Oct 13, 2018
d3e02ab
updated readme
nemiah Oct 22, 2018
9d82c65
moved outputs to logs
nemiah Oct 25, 2018
162dc4b
Improved error output
nemiah Dec 12, 2018
7e04614
Closes #6
nemiah Jan 9, 2019
9560e27
Removed adapter infrastructure for simpler code
nemiah Jan 9, 2019
c030d4d
Segmentabhängige Zeichensatzkonvertierung resolves #7
ampaze Jan 10, 2019
b95ecc8
Merge pull request #9 from ampaze/camt
nemiah Jan 10, 2019
7414a0e
Möglichkeit der Abfrage der Kontoumsätze als CAMT-XML
ampaze Jan 10, 2019
57aace1
Merge pull request #10 from ampaze/camt
nemiah Jan 10, 2019
819f0c6
updated version
nemiah Jan 14, 2019
5ec8f97
updated version
nemiah Jan 14, 2019
2c190ae
Geschäftsvorfallcode mit auswerten
ampaze Jan 14, 2019
0615684
Merge pull request #12 from ampaze/mt940
nemiah Jan 14, 2019
b616c76
updated version
nemiah Jan 28, 2019
bf992a8
Automatische Verwendung von bekannten MT940 Dialekten, Dialekte für S…
ampaze Feb 7, 2019
88375bd
Dialog-ID escapen, da diese vom Server kommt und Sonderzeichen enthal…
ampaze Feb 7, 2019
6cf440d
Merge pull request #13 from ampaze/mt940
nemiah Feb 12, 2019
4204973
Merge pull request #14 from ampaze/core
nemiah Feb 12, 2019
e36fb53
version push
nemiah Feb 12, 2019
6e80811
closes #15
nemiah Mar 1, 2019
8f224a1
new version
nemiah Mar 4, 2019
145a226
require PHP 5.6 for library
omega3000 May 22, 2019
cab4bd5
marked VB RheinAhrEifel eG as compatible
omega3000 May 22, 2019
e2a71df
only fixed some doc tags
omega3000 May 22, 2019
f7dfc0e
add productName & productVersion
omega3000 May 22, 2019
eedcc06
add support for booking_code (Geschäftsvorfall-Code)
omega3000 May 22, 2019
18be677
fix variable name
omega3000 May 22, 2019
e910c98
fix array variable
omega3000 May 22, 2019
3b9b4f5
add debug for registered product
omega3000 May 22, 2019
8f4b53d
add debug for registered product
omega3000 May 22, 2019
d21de9e
add usage for product registration number
omega3000 May 22, 2019
5848011
Merge pull request #17 from omega3000/master
nemiah May 23, 2019
0e753a2
new version
nemiah May 23, 2019
692849a
fixes #18
nemiah May 30, 2019
4c6ee6a
closes #19
nemiah May 30, 2019
f1980b6
updated compatibility
nemiah May 30, 2019
74601b8
see https://github.com/mschindler83/fints-hbci-php/pull/121
nemiah May 30, 2019
86a5812
maybe…
nemiah Jul 2, 2019
3915fd7
Fix PhpDoc for structuredDescription
Philipp91 Dec 3, 2017
0c81fc1
Fix description parsing for empty sections
Philipp91 Feb 25, 2018
7c4da77
Merge pull request #21 from Philipp91/cherry-picks
nemiah Sep 10, 2019
ce294ef
see issue #23
nemiah Sep 10, 2019
c02a242
added experimental support for TAN request on login, with callback fo…
nemiah Sep 12, 2019
eea2ce7
added detection, if TAN is necessary
nemiah Sep 12, 2019
66c3273
refactoring
nemiah Sep 12, 2019
0840702
reset security function to 999 because it works for me :)
nemiah Sep 12, 2019
c4ad071
more direct approach for supported TAN mechanisms
nemiah Sep 13, 2019
95b1c0a
maybe fixed getSaldo :)
nemiah Sep 14, 2019
cb6a5ab
Clear $this->dialog in end()
Philipp91 Sep 14, 2019
3c84347
Remove syncDialog($endDialog) parameter
Philipp91 Sep 14, 2019
98c809b
Merge pull request #27 from Philipp91/enddialog
nemiah Sep 14, 2019
a441084
updated examples
nemiah Sep 14, 2019
e51e324
Add PHPUnit as explicit dev dependency
Philipp91 Sep 14, 2019
4ca6c4f
Merge pull request #29 from Philipp91/phpunit
nemiah Sep 14, 2019
b26e88f
Add new Segment/Deg model and Parser/Serializer
Philipp91 Sep 15, 2019
84ea772
Add HITANS and HIUPD based on the new Segment API
Philipp91 Sep 15, 2019
955617b
Update codebase to match nemiah
Sep 16, 2019
2804244
Update to latest nemiah version
Sep 16, 2019
0d70755
Update remaining files
Sep 16, 2019
8b0706f
Merge
Sep 16, 2019
a3ff0b9
Cleanup
Sep 16, 2019
5be9930
Update .gitignore
Sep 16, 2019
f896873
Merge pull request #32 from Philipp91/newsegments
nemiah Sep 16, 2019
9053f1a
Fix and test getVariables()
Sep 16, 2019
fc7e98e
Merge
Sep 16, 2019
a9eb422
Merge
Sep 16, 2019
bf00b02
Add phpunit composer script
Sep 16, 2019
af11cad
Merge branch 'master' of github.com:nemiah/phpFinTS into nemiah
Sep 16, 2019
6ffe137
Add unit test for postbank
Sep 16, 2019
5fc4b92
Merge
Sep 16, 2019
708e45c
Ignore dialog abortion when ending anyways
Sep 16, 2019
2906663
Merge branch 'nemiah'
Sep 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
.DS_Store
composer.lock
.idea/
vendor/
develop/
coverage/
test.php
/nbproject/private/
/nbproject/
/composer.lock
/composer.phar
/Samples/config.php
/Samples/tan.txt
/Samples/*.test.php
/Samples/*.log
/Samples/analyzeLogs.php
/doc/
40 changes: 8 additions & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,12 @@
language: php

## Run on container environment
sudo: false

## Cache composer bits
cache:
directories:
- $HOME/.composer/cache

## List all PHP versions to test with
install: composer install
script:
- ./phplint.sh ./lib/
- phpunit
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly

matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm

## Install Dependencies
install:
- composer self-update
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer install --prefer-dist --no-interaction

## Run test Scripts
script:
- ./phplint.sh ./lib/
- vendor/bin/phpunit
46 changes: 0 additions & 46 deletions CODE_OF_CONDUCT.md

This file was deleted.

19 changes: 11 additions & 8 deletions COMPATIBILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This library is verified to work with following banks.
- [x] Bankhaus Rautenschlein
- [ ] Bankverein Bebra
- [ ] Bankverein Werther AG
- [ ] Barclays Bank PLC
- [ ] Bayerische Landesbank Girozentrale
- [x] BBBank
- [ ] Bensberger Bank eG
Expand Down Expand Up @@ -72,14 +73,15 @@ This library is verified to work with following banks.
- [ ] Cash Express Gesellschaft f Finanz-u Reisedienstleistungen
- [x] comdirect bank AG
- [ ] Commerzbank
- [x] Consorsbank
- [ ] Crailsheimer Volksbank -alt-
- [ ] Credit- und Volksbank eG
- [x] Cronbank
- [ ] CVW - Privatbank
- [ ] Darmsheimer Bank
- [ ] Degussa Bank AG
- [ ] Dettinger Bank
- [ ] Deutsche Apotheker- und Ärztebank eG
- [x] Deutsche Apotheker- und Ärztebank eG
- [ ] Deutsche Bank AG
- [x] Deutsche Bank Privat und Geschäftskunden AG
- [ ] Deutsche Genossenschafts-Hypothekenbank AG
Expand Down Expand Up @@ -277,15 +279,15 @@ This library is verified to work with following banks.
- [ ] Münsterländische Bank Thie & Co
- [ ] Murgtalbank Mitteltal - Obertal -alt-
- [ ] Müritz-Sparkasse
- [ ] Nassauische Sparkasse
- [X] Nassauische Sparkasse
- [ ] National-Bank
- [ ] net-m privatbank 1891 AG
- [ ] netbank AG
- [ ] NF Bank
- [ ] NIBC Bank Zndl Frankfurt am Main
- [ ] NL Bank Volks- und Raiffeisenbank eG
- [ ] Nord-Ostsee Sparkasse
- [ ] Nord/LB Hannover
- [X] Nord/LB Hannover / Norddeutsche Landesbank Girozentrale
- [ ] Norderstedter Bank eG
- [ ] Nordthüringer Volksbank
- [ ] norisbank GmbH
Expand Down Expand Up @@ -532,6 +534,7 @@ This library is verified to work with following banks.
- [ ] Raiffeisenbank Leezen eG
- [ ] Raiffeisenbank Lorup eG
- [x] Raiffeisenbank Maintal Ndl d Frankfurter VB
- [x] Raiffeisenbank Main-Spessart
- [ ] Raiffeisenbank Maitis
- [ ] Raiffeisenbank Malchin eG
- [ ] Raiffeisenbank Mangfalltal -alt-
Expand Down Expand Up @@ -874,7 +877,7 @@ This library is verified to work with following banks.
- [ ] Sparkasse Kierspe-Meinerzhagen
- [ ] Sparkasse Kleve
- [ ] Sparkasse Koblenz
- [ ] Sparkasse KölnBonn
- [x] Sparkasse KölnBonn
- [ ] Sparkasse Kraichgau (Bruchsal-Bretten-Sinsheim)
- [x] Sparkasse Krefeld
- [ ] Sparkasse Kulmbach-Kronach
Expand Down Expand Up @@ -909,7 +912,7 @@ This library is verified to work with following banks.
- [ ] Sparkasse Mittelholstein AG
- [ ] Sparkasse Mittelmosel-Eifel-Mosel-Hunsrück
- [ ] Sparkasse Mittelsachsen
- [ ] Sparkasse Mittelthüringen
- [x] Sparkasse Mittelthüringen
- [ ] Sparkasse Moosburg
- [ ] Sparkasse Muldental
- [ ] Sparkasse Mülheim a.d. Ruhr
Expand Down Expand Up @@ -1013,7 +1016,7 @@ This library is verified to work with following banks.
- [ ] Stadt- und Kreissparkasse Rothenburg
- [ ] Stadt-Sparkasse Düsseldorf
- [ ] Stadt-Sparkasse Haan (Rheinland)
- [ ] Stadt-Sparkasse Langenfeld
- [x] Stadt-Sparkasse Langenfeld
- [ ] Stadt-Sparkasse Solingen
- [ ] Stadtsparkasse Aichach-Schrobenhausen
- [x] Stadtsparkasse Augsburg
Expand Down Expand Up @@ -1071,7 +1074,7 @@ This library is verified to work with following banks.
- [ ] Stuttgarter Volksbank
- [ ] Südwestbank
- [ ] Sydbank A/S
- [ ] Taunus-Sparkasse
- [x] Taunus-Sparkasse
- [x] Triodos Bank Deutschland
- [ ] Uhlbacher Bank
- [ ] UniCredit Bank - HypoVereinsbank AG
Expand All @@ -1097,7 +1100,7 @@ This library is verified to work with following banks.
- [ ] VB Nahetal eG
- [ ] VB Nordmünsterland Mitte eG
- [ ] VB RB eG, Neumünster
- [ ] VB RheinAhrEifel eG.
- [x] VB RheinAhrEifel eG.
- [ ] VB Spelle-Freren eG
- [ ] VB Südkirchen-Cap.-Nordkirchen
- [ ] VB Vallendar-Niederwerth eG
Expand Down
53 changes: 25 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,41 @@
# FinTS HBCI PHP
# PHP FinTS/HBCI library

[![Build Status](https://img.shields.io/travis/mschindler83/fints-hbci-php/master.svg)](https://travis-ci.org/mschindler83/fints-hbci-php)
[![Latest Stable Version](https://img.shields.io/packagist/v/mschindler83/fints-hbci-php.svg)](https://packagist.org/packages/mschindler83/fints-hbci-php)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/mschindler83/fints-hbci-php.svg)](https://scrutinizer-ci.com/g/mschindler83/fints-hbci-php/?branch=master)
[![Monthly Downloads](https://img.shields.io/packagist/dm/mschindler83/fints-hbci-php.svg)](https://packagist.org/packages/mschindler83/fints-hbci-php)
[![License](https://img.shields.io/github/license/mschindler83/fints-hbci-php.svg)](https://github.com/mschindler83/fints-hbci-php/blob/master/LICENSE)
A PHP library implementing the following functions of the FinTS/HBCI protocol:

A PHP library implementing the basics of the FinTS / HBCI protocol.
It can be used to fetch the balance of connected bank accounts and for fetching bank statements of accounts.
* Get accounts
* Get bank parameters
* Get balance
* Get transactions
* Get standing orders
* Delete standing order
* Execute direct debit
* Execute transfer

Forked from https://github.com/mschindler83/fints-hbci-php

## Getting Started

Install via composer:

```bash
composer require mschindler83/fints-hbci-php
```

## How to use it
   composer require nemiah/php-fints

You can have a look at the "Samples" folder in this repository.
Just fill in the required data beginning from line 13 to 17 and run the script.

You can find the server information of your bank here:
https://www.hbci-zka.de/institute/institut_auswahl.htm
## Usage

## Contribute
See the examples in the "Samples" folder.<br>
Fill out the required configuration and execute the file.

### Bank compatibility
Server details can be obtained here after registration:
https://www.hbci-zka.de

This library can only work stable with *YOUR* help!
As I'm very limited in testing different banks it would be good to get some feedback from you all.
Feel free to create PR's for the [COMPATIBILITY.md](COMPATIBILITY.md) file where you can update the list of working banks.
## Special usage

### Code Style
My goal for this library was to be able to execute automatic direct debits with m(obile)TAN.

## Contribute

If you plan to contribute to this library, please ensure that you stick with the PSR coding rules as close as you can (At least PSR-0 to PSR-4).
You can find the PHP Standard Recommendations [here](http://www.php-fig.org/psr/)
Contributions are welcome!

### Have fun!
### Bank compatibility

Looking for a PRO Version which is capable of doing transactions?
Checkout http://fints-hbci-php.markus-schindler.de/pro.html
Please update the COMPATIBILITY.md file and send a pull request if you successfully tested this library with your bank.
43 changes: 43 additions & 0 deletions Samples/accounts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/**
* SAMPLE - Displays the available accounts
*/

require '../vendor/autoload.php';

class testLogger extends Psr\Log\AbstractLogger {

public function log($level, $message, array $context = array()): void {
file_put_contents(__DIR__."/accounts.log", file_get_contents(__DIR__."/accounts.log").$message."\n");
}

}

use Fhp\FinTs;

file_put_contents(__DIR__."/accounts.log", "");

define('FHP_BANK_URL', ''); # HBCI / FinTS Url can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm (use the PIN/TAN URL)
define('FHP_BANK_PORT', 443); # HBCI / FinTS Port can be found here: https://www.hbci-zka.de/institute/institut_auswahl.htm
define('FHP_BANK_CODE', ''); # Your bank code / Bankleitzahl
define('FHP_ONLINE_BANKING_USERNAME', ''); # Your online banking username / alias
define('FHP_ONLINE_BANKING_PIN', ''); # Your online banking PIN (NOT! the pin of your bank card!)
define('FHP_REGISTRATION_NO', ''); # The number you receive after registration / FinTS-Registrierungsnummer
define('FHP_SOFTWARE_VERSION', '1.0'); # Your own Software product version

$fints = new FinTs(
FHP_BANK_URL,
FHP_BANK_PORT,
FHP_BANK_CODE,
FHP_ONLINE_BANKING_USERNAME,
FHP_ONLINE_BANKING_PIN,
new testLogger(),
FHP_REGISTRATION_NO,
FHP_SOFTWARE_VERSION
);

$accounts = $fints->getSEPAAccounts();

$fints->end();
print_r($accounts);
Loading