PHP code example of silarhi / caf-parser
1. Go to this page and download the library: Download silarhi/caf-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
silarhi / caf-parser example snippets
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);
}