silarhi / caf-parser
A CAF Parser for LA44ZZ file
3.0.0
2025-01-06 16:31 UTC
Requires
- php: >=8.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.66
- phpstan/phpstan: ^2
- phpunit/phpunit: ^10.5.5
- rector/rector: ^2
This package is auto-updated.
Last update: 2025-02-25 01:58:37 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); }