Guten Morgen!
Als PHP Neuling versuche ich gerade, die FinTS Lib von Markus Schindler einzubinden. Ich arbeite sonst im Backend nur mit Perl.
Was ich habe: Win7 64 Pro, PHP 7.2.4 (cli) (built: Mar 28 2018 04:27:01) ( ZTS MSVC15 (Visual C++ 2017) x64 )
In der Konsole funktioniert PHP an sich z. B. mit php -v einwandfrei.
Die Datei https://github.com/mschindler83/fint...ive/master.zip habe ich mir in das Verzeichnis /php/modules/fints-hbci-php-master entpackt und dieses Script vorbereitet:
Wenn ich das starte erhalte ich:
Was mache ich falsch
Danke für eure Hilfe.
Als PHP Neuling versuche ich gerade, die FinTS Lib von Markus Schindler einzubinden. Ich arbeite sonst im Backend nur mit Perl.
Was ich habe: Win7 64 Pro, PHP 7.2.4 (cli) (built: Mar 28 2018 04:27:01) ( ZTS MSVC15 (Visual C++ 2017) x64 )
In der Konsole funktioniert PHP an sich z. B. mit php -v einwandfrei.
Die Datei https://github.com/mschindler83/fint...ive/master.zip habe ich mir in das Verzeichnis /php/modules/fints-hbci-php-master entpackt und dieses Script vorbereitet:
PHP-Code:
#
# http://fints-hbci-php.markus-schindler.de
#
<?php
$pfad = '***************/php/modules';
include("$pfad/fints-hbci-php-master/lib/Fhp/FinTs.php");
include("$pfad/fints-hbci-php-master/lib/Fhp/Model/StatementOfAccount/Statement.php");
include("$pfad/fints-hbci-php-master/lib/Fhp/Model/StatementOfAccount/Transaction.php");
$fints = new FinTs(
'https://banking............../fints30', # FHP_BANK_URL,
443, # FHP_BANK_PORT,
'********', # FHP_BANK_CODE,
'*****', # FHP_ONLINE_BANKING_USERNAME,
'**' # FHP_ONLINE_BANKING_PIN
);
$accounts = $fints->getSEPAAccounts();
foreach ($accounts as $a) {
print "\n\nNächstes Konto:\n";
if ($a->getAccountNumber() == $line["accountnumber"]) {
print "Saldo: ".$fints->getSaldo($a)."\n";
print "Saldo 2: ".$saldo->getAmount()."\n";
print "Währung: ".$saldo->getCurrency()."\n";
print "Datum: ".property_exists($saldo->getValuta(),"date") ? $saldo->getValuta()->date:date("Y-m-d H:i:s")."\n";
}
}
?>
#
# http://fints-hbci-php.markus-schindler.de
#
Fatal error: Uncaught Error: Class 'FinTs' not found in **************\test_fhp.php:10
Stack trace:
#0 {main}
thrown in ***********\test_fhp.php on line 10
# http://fints-hbci-php.markus-schindler.de
#
Fatal error: Uncaught Error: Class 'FinTs' not found in **************\test_fhp.php:10
Stack trace:
#0 {main}
thrown in ***********\test_fhp.php on line 10
Danke für eure Hilfe.
Kommentar