Skip to content

QIF Library

Read Quicken Interchange Format exports into typed PHP objects, or generate QIF files from your own transactions.
Terminal window
composer require silarhi/qif-library

Parser

Reads the date, amount, memo, cleared status, payee, address, category and splits of every transaction.

Writer

Builds QIF output from Transaction objects, splits, memo and address included: what the parser reads, the writer writes back.

Typed results

Dates as DateTimeImmutable, amounts as float, account types and cleared status as enums.

No silent guesses

Impossible dates (31/02/2023) and ambiguous amounts (1,234) throw a ParseException instead of being rolled over or misread, with the line where they are.

Day- or month-first dates

d/m/Y by default, m/d/Y for US exports, read and written. ISO dates always, and the ' year separator and space-padded dates (1/ 1/ 0) too.

Both number conventions

1,234.50 and 1.234,50, the decimal separator detected for each amount or set for the whole file.

No dependencies

Plain PHP 8.2+. Works with Windows (\r\n) and Unix line endings, and strips the UTF-8 BOM.

This library started as a fork of mimographix/qif-library by Mário Čechovič.