### Install PHP FinTS/HBCI Library Source: https://github.com/nemiah/phpfints/blob/master/README.md Install the library using Composer. Ensure PHP mbstring and unzip/7z are installed beforehand to avoid common errors. ```bash composer require nemiah/php-fints ``` -------------------------------- ### Example FinTS Message Structure Source: https://github.com/nemiah/phpfints/blob/master/DEVELOPER-GUIDE.md Illustrates the hierarchical structure of a FinTS message, composed of segments, data elements, and data element groups. Each segment begins with an identifier. ```plaintext HNHBK:1:3+000000000079+300+dialogID+2'HKEND:2:1+dialogID'HNHBS:3:1+2' ``` -------------------------------- ### Logging Requests and Responses Source: https://github.com/nemiah/phpfints/blob/master/DEVELOPER-GUIDE.md The `CLILogger` class can record requests and responses during a dialog with the bank. Sensitive values are automatically replaced with placeholders when used with `FinTs::setLogger()`. ```php $logger = new CLILogger(); $fints = new FinTs($bank, $user, $pin, $tanRequired, $logger); // ... dialog with bank ... ``` -------------------------------- ### ING Diba PSD2 Tan Mode Selection Source: https://github.com/nemiah/phpfints/blob/master/README.md For ING Diba, which does not support PSD2, explicitly select the NoPsd2TanMode. ```php if (trim($blz) == "50010517") $fints->selectTanMode(new Fhp\Model\NoPsd2TanMode()); ``` -------------------------------- ### Prettify FinTS Message Source: https://github.com/nemiah/phpfints/blob/master/DEVELOPER-GUIDE.md Use the `prettify_message.php` script to render serialized FinTS messages into a more readable format with inlined field names. This is useful for debugging. ```bash cat wire_format_message | php prettify_message.php ``` -------------------------------- ### Prettify FinTS Segment Source: https://github.com/nemiah/phpfints/blob/master/DEVELOPER-GUIDE.md Use the `prettify_segment.php` script to render serialized FinTS segments into a more readable format with inlined field names. This is useful for debugging. ```bash cat wire_format_segment | php prettify_segment.php ``` -------------------------------- ### Hypovereinsbank Special BLZ Handling Source: https://github.com/nemiah/phpfints/blob/master/README.md For Hypovereinsbank, use BLZ 70020270 if the URL matches the specific Hypovereinsbank URL to avoid 'Unbekanntes Kreditinstitut' exceptions. ```php if (trim($url) == 'https://hbci-01.hypovereinsbank.de/bank/hbci') $blz = '70020270'; ``` -------------------------------- ### Fix Coding Style Issues Source: https://github.com/nemiah/phpfints/blob/master/README.md Automatically fix coding style issues according to Symfony Coding-Style standards using Composer. ```bash composer cs-fix ``` -------------------------------- ### Update Composer Dependencies Source: https://github.com/nemiah/phpfints/blob/master/README.md Update Composer dependencies to ensure all packages are up-to-date. ```bash composer update ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.