PHPackages                             cihansenturk/ofxparser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. cihansenturk/ofxparser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

cihansenturk/ofxparser
======================

Modern, secure, and type-safe OFX/QFX parser for PHP 8.1+ with comprehensive date format support and XXE protection

1.0.0(6mo ago)0397↓13.3%MITPHPPHP ^8.1

Since Nov 17Pushed 6mo agoCompare

[ Source](https://github.com/CihanSenturk/ofxparser)[ Packagist](https://packagist.org/packages/cihansenturk/ofxparser)[ Docs](https://github.com/CihanSenturk/ofxparser)[ RSS](/packages/cihansenturk-ofxparser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

OFX Parser v1.0.0
=================

[](#ofx-parser-v100)

[![Build Status](https://camo.githubusercontent.com/331146295c5a460086d61eec3d51ec3b422c88cab98de942636783846253331f/68747470733a2f2f7472617669732d63692e636f6d2f436968616e53656e7475726b2f6f66787061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/CihanSenturk/ofxparser) [![Latest Stable Version](https://camo.githubusercontent.com/eddbd9e6f5e8affe85d3e049ea2729327994fd651c910e99e2f6e3339bb30879/68747470733a2f2f706f7365722e707567782e6f72672f636968616e73656e7475726b2f6f66787061727365722f762f737461626c65)](https://packagist.org/packages/cihansenturk/ofxparser) [![License](https://camo.githubusercontent.com/8e8a0b620d91d2a7973a0fd714e9542fa12404e1e11fbb6c8e29caf33dfc0cab/68747470733a2f2f706f7365722e707567782e6f72672f636968616e73656e7475726b2f6f66787061727365722f6c6963656e7365)](https://packagist.org/packages/cihansenturk/ofxparser)

**Modern, secure, and type-safe OFX/QFX parser for PHP 8.1+**

A production-ready PHP library for parsing OFX (Open Financial Exchange) files downloaded from financial institutions into simple, type-safe PHP objects. Fully compatible with modern PHP 8.1+ standards with comprehensive test coverage.

✨ Features
----------

[](#-features)

- ✅ **Modern PHP 8.1+** - Full type safety with `declare(strict_types=1)` and return type declarations
- 🔒 **Security Hardened** - XXE (XML External Entity) attack protection
- 📅 **Multiple Date Formats** - Support for YYYYMMDD, MM/DD/YYYY, DD/MM/YYYY, and ISO 8601
- 💰 **Smart Amount Parsing** - Correct handling of integers and decimals (fixes "100" → 1.0 bug)
- 🌍 **International Support** - US and European date formats with smart detection
- 🧪 **100% Test Coverage** - Comprehensive PHPUnit test suite (13+ tests, 57+ assertions)
- 📦 **PSR-12 Compliant** - Clean, modern code standards (87.5% compliance)
- 🚀 **Production Ready** - Used in real-world financial applications

📋 Requirements
--------------

[](#-requirements)

- **PHP:** ^8.1
- **Extensions:** libxml, SimpleXML
- **Composer:** For package management

📦 Installation
--------------

[](#-installation)

Install via [Composer](https://getcomposer.org/):

```
composer require cihansenturk/ofxparser
```

🚀 Quick Start
-------------

[](#-quick-start)

### Basic Usage

[](#basic-usage)

Parse an OFX file and access account transactions:

```
