pint-ae is an open-source PHP toolkit published by Zaini Developers for generating UAE PINT AE electronic invoices and credit notes from plain data structures and validating them against the UBL 2.1 schemas and the published PINT AE business rules. It is designed to sit inside any PHP application or middleware as the document engine. It does not transmit documents; submission to an Accredited Service Provider is handled by a separate adapter, because transmission is provider-specific and the library should stay neutral.
Key facts at a glance
- Language: PHP 8.x; licence and installation details in the repository README.
- Scope: generate UBL 2.1 PINT AE documents and validate them locally.
- Built from 14 provider certification test cases covering common UAE scenarios.
- Not included: transmission, provider APIs, archiving (by design).
- Repository: github.com/Sahil-Zaini/pint-ae.
Why we open-sourced it
Every PHP developer integrating a UAE business with an accredited provider has to solve the same problems: build a correctly ordered UBL document, get the VAT categories and reason codes right, make the arithmetic agree, and find out before submission whether the document will be rejected. Solving that once, in the open, raises the quality floor for everyone and lets providers focus on transmission rather than on explaining schema errors to each customer.
What it covers
| Area | Support |
|---|---|
| Document types | Invoice (380) and credit note (381) with billing references |
| Parties | TIN endpoint identifiers (0235), TRN tax scheme, structured addresses |
| Lines | Quantities with unit codes, prices, line allowances/charges, VAT categories and reason codes |
| Document level | Allowances and charges per VAT category, payment means and terms, references |
| Totals | Single arithmetic engine producing consistent breakdowns and monetary totals |
| Foreign currency | Document currency with AED VAT amount and exchange rate |
| Validation | XSD and schematron execution with structured results (rule IDs, severities, messages) |
How it fits a pipeline
// 1. Build from your data
$invoice = PintAe\Invoice::fromArray($data);
// 2. Generate XML
$xml = $invoice->toXml();
// 3. Validate locally
$result = PintAe\Validator::validate($xml);
if ($result->hasFatal()) { /* show rule IDs to the user; do not submit */ }
// 4. Hand to your provider adapter (not part of pint-ae)
$asp->submit($xml, $invoice->id());
Contributing and roadmap
Issues and pull requests are welcome for new scenarios, rule-set updates when Peppol publishes PINT AE releases, and additional code-list helpers. The roadmap tracks the UAE specification: when the Mandatory Fields document or the schematron changes, the library's test corpus is updated and a release is tagged. Our production platform, FORMA, uses the same engine, so the library is exercised against real provider sandboxes continuously.
Where Zaini Developers fits in
If you are building on pint-ae and want help with the provider adapter, the archive or the finance dashboard around it, that is the work we do every week.
Book a free consultation →Frequently asked questions
Is pint-ae an accredited solution?
Accreditation applies to service providers that transmit documents. pint-ae is a document library; transmission goes through an accredited provider.
Can I use it commercially?
Check the licence in the repository; it is intended to be usable in commercial projects.
Does it validate against the latest PINT AE release?
The repository states the rule-set version it targets; update when a new release is tagged.
Is there a hosted validator?
Yes, our browser-based PINT AE validator on zainidevelopers.com runs the same rules client-side.
