PHP code example of oriatec / ofxparser
1. Go to this page and download the library: Download oriatec/ofxparser 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/ */
oriatec / ofxparser example snippets
$ofxParser = new \OfxParser\Parser();
$ofx = $ofxParser->loadFromFile('/path/to/your/bankstatement.ofx');
$bankAccount = reset($ofx->bankAccounts);
// Get the statement start and end dates
$startDate = $bankAccount->statement->startDate;
$endDate = $bankAccount->statement->endDate;
// Get the statement transactions for the account
$transactions = $bankAccount->statement->transactions;