silarhi/caf-parser

A CAF Parser for LA44ZZ file

2.0.0 2024-02-09 11:17 UTC

This package is auto-updated.

Last update: 2024-12-25 20:49:43 UTC


README

Build Status Latest Stable Version Total Downloads License

A PHP Parser for CAF file

Supports LA44ZZ file

Installation

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require silarhi/caf-parser

How to use

Parse LA44ZZ

<?php

use Silarhi\Caf\Parser\PaymentSlipParser;

$parser = new PaymentSlipParser();

//Gets all statements day by day
$paymentSlip = $parser->parse('My Content');
foreach($paymentSlip->getLines() as $line) {
  assert($line instanceof \Silarhi\Caf\Model\PaymentSlipLine);
}