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

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

rozdol/mt940
============

Mt940 parcer

v1.0.18(6y ago)169MITPHPPHP &gt;=5.6

Since Apr 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/rozdol/mt940)[ Packagist](https://packagist.org/packages/rozdol/mt940)[ RSS](/packages/rozdol-mt940/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

PHP Class for TM940 statements
==============================

[](#php-class-for-tm940-statements)

About
-----

[](#about)

TM940 statements parser

Inspired by jejik-mt940 ()

Install
-------

[](#install)

cd to `your_project_root_dir`

```
composer require rozdol/mt940:"v1.*"
```

in Table or Model or Controller

```
use Rozdol\Mt940\Mt940;
$this->mt940 = new Mt940();
$data=[...];
$result = $this->utils->mt940($data);
```

### Unit Test

[](#unit-test)

`cd mt940`

```
composer update rozdol/mt940
```

To test

```
./vendor/bin/phpunit tests/
```

Compose library Tutorial
------------------------

[](#compose-library-tutorial)

```
cd mt940
composer update
git init
git .
git commit -m 'Initial commit'
```

Create github repo

```
git remote add origin git@github.com:rozdol/mt940.git
git push origin master
```

- on github add new release (v1.0.0)
- On packagist Update Package
- Login to [packagist.org](https://packagist.org/)
- Submit `https://github.com/rozdol/mt940`

### Ready to use in project

[](#ready-to-use-in-project)

cd to `your_project_root_dir`

```
composer require rozdol/mt940
```

in Table or Model or Controller

```
use Rozdol\Mt940\Mt940;
$this->mt940 = new Mt940();
$date_normalized = $this->mt940->F_date('01/01/20', 1); // 01.01.2020
```

#### Connecting Github to Packagist

[](#connecting-github-to-packagist)

In Github-&gt;Settings-&gt;Integrations..-&gt;Add-&gt;Packagist user: packagist user api\_key: packagist-&gt;User-&gt;Profile-&gt;Show API KEY Domain:

Test: New reslease in Github and check the version in Packagist

### Unit Tests

[](#unit-tests)

install local phpunit

```
composer require --dev phpunit/phpunit ^6
```

```
mkdir tests
cd tests
mkdir TestCase
cd TestCase
mkdir Funcs
```

edit `mt940Test.php`

`cd mt940`

```
composer update rozdol/mt940
```

To test

```
./vendor/bin/phpunit tests/
```

in GitHub `Project / Settings / Services / Add Packagist`

```
User: rozdol
Token: https://packagist.org/profile/ -> Your API Token
Domain: https://packagist.org
Active: true
Add Service: click
```

### Travis CI

[](#travis-ci)

```
git checkout -b travis
git add .travis.yml
git push origin travis
```

in GitHub `Project / Settings / Services / Add Packagist`

```
User: rozdol
Token: https://travis-ci.org/profile/rozdol -> Copy API Token
Domain: notify.travis-ci.org
Active: true
Add Service: click
```

[Got to Travis](https://travis-ci.org/) Press + , swipe activation

##### Detactach from original source

[](#detactach-from-original-source)

```
git remote -v
git remote remove origin
git remote add origin git@github.com:rozdol/mt940.git
git push origin random_changes
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~6 days

Recently: every ~21 days

Total

19

Last Release

2481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa64a52b9068d2b522fec368d580955f6b02367c87a8bed4e2d9492c1d0fcfb5?d=identicon)[rozdol](/maintainers/rozdol)

---

Top Contributors

[![rozdol](https://avatars.githubusercontent.com/u/543388?v=4)](https://github.com/rozdol "rozdol (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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