Skip to content

Installation

  • PHP 8.2+

The library has no other runtime dependency: no extension, no framework.

Terminal window
composer require silarhi/cfonb-parser
Class Reads
Silarhi\Cfonb\Cfonb120Reader CFONB 120 bank statements (relevés de compte), into Statement
Silarhi\Cfonb\Cfonb240Reader CFONB 240 transfer files, into Transfer
Silarhi\Cfonb\CfonbReader Both formats, through the two readers above
Silarhi\Cfonb\CfonbFormat The format of a file, CFONB 120 or 240 (since 6.7)
Silarhi\Cfonb\OperationCode The CFONB operation codes, their labels and directions (since 6.7)
Silarhi\Cfonb\CfonbCodes The same labels as an array, deprecated since 6.7
Silarhi\Cfonb\Exceptions\ParseException Thrown on a line the readers cannot parse

The readers are plain objects with no state: create them with new, or register them as services of your framework. Everything under Silarhi\Cfonb\Parser is internal.

Next: parse your first file.