PHPackages                             codeculture/php-mt940 - 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. codeculture/php-mt940

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

codeculture/php-mt940
=====================

Simple MT940 parser in PHP | kingsquare/php-mt940 fork

1.1.3(9y ago)04.7kMITPHPPHP &gt;=5.5

Since Nov 1Pushed 9y ago5 watchersCompare

[ Source](https://github.com/codeculturehq/php-mt940)[ Packagist](https://packagist.org/packages/codeculture/php-mt940)[ Docs](https://github.com/fruitl00p/php-mt940)[ RSS](/packages/codeculture-php-mt940/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (18)Used By (0)

[![Build Status](https://camo.githubusercontent.com/db8ce4a6ae1d3ffa0f6ef1c2518775ad5296e120b7632fe47b2d9bc8e4c9571b/68747470733a2f2f7472617669732d63692e6f72672f636f646563756c7475726568712f7068702d6d743934302e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/codeculturehq/php-mt940)[![Latest Stable Version](https://camo.githubusercontent.com/d7a90c0ee1ddeb03d450f67fb52308986af4c14b7e4f62c9b8c2f7b32cdaa2ae/68747470733a2f2f706f7365722e707567782e6f72672f636f646563756c7475726568712f7068702d6d743934302f762f737461626c652e706e67)](https://packagist.org/packages/codeculturehq/php-mt940)[![License](https://camo.githubusercontent.com/d70d9a825c09750d734bfe369f20b0348a8fa45b0471febd0420cab918b93786/68747470733a2f2f706f7365722e707567782e6f72672f6b696e677371756172652f7068702d6d743934302f6c6963656e73652e706e67)](https://packagist.org/packages/kingsquare/php-mt940)[![wercker status](https://camo.githubusercontent.com/5091824de7c9abf1de6ad8dcc0d6880d10cfa9c150317b9b9401f85b6fd533cd/68747470733a2f2f6170702e776572636b65722e636f6d2f7374617475732f62326633643131386531373836386463626165303131383233626165386231662f73 "wercker status")](https://app.wercker.com/project/bykey/b2f3d118e17868dcbae011823bae8b1f)

README
======

[](#readme)

What is php-mt940?
------------------

[](#what-is-php-mt940)

The php-mt940 package provides a simple lightweight parser for mt940 (dutch bank file format) parsing. The output is transformed into easy to use dataclasses Transaction\_banking which itself contains Statement\_banking objects. Pretty straight forward.

Requirements
------------

[](#requirements)

- Atleast the latest supported PHP5. This should read 5.4+, but probably 5.3 would work (and you should upgrade)

Installation
------------

[](#installation)

If composer is not yet on your system, follow the instructions on [getcomposer.org](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) to do so.

To add this dependency to your project, simply run the following command from the root of your project:

`composer require kingsquare/php-mt940`

This ensures that you install the latest stable release.

How to use the parsers?
-----------------------

[](#how-to-use-the-parsers)

I've attached a simple script in the examples directory to explain it a bit more in detail, but after loading the required classes, the usage should be pretty simple:

```

```

Known issues
------------

[](#known-issues)

I've provided a phpunit test for some engines, but am missing some test-data...

Future plans
------------

[](#future-plans)

I do intend to add new engines or keep everything running smoothly, but since i don't have access to any more test files, it's hard to add new engines ;) The `unknown` engine should work or atleast give some idea as to where different banks diverge from the standard. If you do have any ideas, examples or new banks that you'd like to see incorporated, please don't hesitate and send me an issue / pullrequest!

Contact
-------

[](#contact)

This is GitHub, you know where to find me :)

License
-------

[](#license)

PHP-MT940 is licensed under the MIT License - see the LICENSE file for details

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 69% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~72 days

Recently: every ~132 days

Total

17

Last Release

3415d ago

Major Versions

0.10.0 → 1.0.12015-07-30

PHP version history (3 changes)0.2PHP &gt;=5.3.0

0.9.0PHP &gt;=5.4

1.0.1PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/94d14ed1052ce78ba735bfb576824be22e1d94c4ef5b40065bf942c1e98dc701?d=identicon)[codeculture](/maintainers/codeculture)

---

Top Contributors

[![fruitl00p](https://avatars.githubusercontent.com/u/1492861?v=4)](https://github.com/fruitl00p "fruitl00p (98 commits)")[![D3CK3R](https://avatars.githubusercontent.com/u/1352374?v=4)](https://github.com/D3CK3R "D3CK3R (15 commits)")[![sven-codeculture](https://avatars.githubusercontent.com/u/3930643?v=4)](https://github.com/sven-codeculture "sven-codeculture (14 commits)")[![tswestendorp](https://avatars.githubusercontent.com/u/1061961?v=4)](https://github.com/tswestendorp "tswestendorp (7 commits)")[![markoheijnen](https://avatars.githubusercontent.com/u/262877?v=4)](https://github.com/markoheijnen "markoheijnen (4 commits)")[![tpokorra](https://avatars.githubusercontent.com/u/357107?v=4)](https://github.com/tpokorra "tpokorra (2 commits)")[![SamMousa](https://avatars.githubusercontent.com/u/547021?v=4)](https://github.com/SamMousa "SamMousa (1 commits)")[![tuxphr34k](https://avatars.githubusercontent.com/u/8660806?v=4)](https://github.com/tuxphr34k "tuxphr34k (1 commits)")

---

Tags

parsingmt940

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeculture-php-mt940/health.svg)

```
[![Health](https://phpackages.com/badges/codeculture-php-mt940/health.svg)](https://phpackages.com/packages/codeculture-php-mt940)
```

###  Alternatives

[jejik/mt940

An MT940 bank statement parser for PHP

911.2M2](/packages/jejik-mt940)[kingsquare/php-mt940

Simple MT940 parser in PHP

105806.1k2](/packages/kingsquare-php-mt940)[jakubledl/dissect

Lexing and parsing in pure PHP

2244.6M11](/packages/jakubledl-dissect)[parsica-php/parsica

The easiest way to build robust parsers in PHP.

412140.4k4](/packages/parsica-php-parsica)[denissimon/formula-parser

Parsing and evaluating mathematical formulas given as strings.

81306.8k3](/packages/denissimon-formula-parser)[codelicious/php-coda-parser

PHP parser for Belgian CODA banking files

44352.9k1](/packages/codelicious-php-coda-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
