Skip to content
 
 

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrutinizer Quality Score Build Status Latest Stable Version License wercker status

README

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

  • Atleast php5 :) (possibly even PHP5.3+ I haven't tested it below 5.3)

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: <?php // ... load everything ... //

	// instantiate the actual parser
    // and parse them from a given file, this could be any file or a posted string
    $parser = new Mt940_banking_parser();
    $tmpFile = __DIR__.'/test.mta';
    $parsedStatements = $parser->parse(file_get_contents($tmpFile));

    ?>

Known issues

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

Contact

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

License

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

About

A mt940 parser in PHP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors