silarhi / caf-parser
A CAF Parser for LA44ZZ file
2.0.0
2024-02-09 11:17 UTC
Requires
- php: >= 8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.49
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5.10
- rector/rector: ^1.0
This package is auto-updated.
Last update: 2024-12-25 20:49:43 UTC
README
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); }