PHP code example of nemiah / php-fints

1. Go to this page and download the library: Download nemiah/php-fints library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nemiah / php-fints example snippets


$getCards = \Fhp\Action\GetCreditCardAccounts::create();
$fints->execute($getCards);
$cards = $getCards->getAccounts();

$getTransactions = \Fhp\Action\GetCreditCardStatement::create($cards[0], $from, $to);
$fints->execute($getTransactions);
if ($getTransactions->needsTan()) {
    handleStrongAuthentication($getTransactions);
}
foreach ($getTransactions->getStatement()->getTransactions() as $transaction) {
    echo $transaction->getBookingDate()->format('Y-m-d') . ' '
        . $transaction->getAmount() . ' ' . $transaction->getCurrency() . ' '
        . $transaction->getPurpose() . PHP_EOL;
}

if (trim($url) == 'https://hbci-01.hypovereinsbank.de/bank/hbci')
	$blz = '70020270';

if (trim($blz) == "50010517")
	$fints->selectTanMode(new Fhp\Model\NoPsd2TanMode());

composer