Skip to content

CAF Parser

A PHP parser for CAF LA44ZZ payment slips. Turn the plain-text "bordereau de paiement" sent by the Caisse d'Allocations Familiales into typed PHP objects.
Terminal window
composer require silarhi/caf-parser

LA44ZZ payment slips

Every payment line of the table: beneficiary, period, gross, deduction and net amounts.

Slip metadata

Processing and payment dates, CAF name and address, recipient name and address, reference, BIC, IBAN and total.

Typed results

Dates as DateTimeInterface, amounts as float, with French and English formats such as 1 298,50 or 1,298.50.

Strict validation

Malformed rows and amounts, and invalid or out-of-range dates, throw a ParseException instead of a wrong value.

No dependencies

Plain PHP 8.2+, with Windows (\r\n) and Unix line endings.