dev-3bdulrahman / zatca
ZATCA Phase 2 E-Invoicing compliance module for Laravel ERP
1.0.0
2026-07-22 05:55 UTC
Requires
- php: ^8.2|^8.3
- ext-openssl: *
- ext-simplexml: *
- laravel/framework: ^11.0|^12.0
README
A complete ZATCA Phase 2 E-Invoicing Compliance module for Laravel ERP systems in Saudi Arabia. Generate UBL 2.1 XML invoices (Standard & Simplified), produce ECDSA cryptographic stamps, generate compliant Phase 2 QR codes, and connect to the ZATCA Fatoora portal — with full API and Livewire admin interface.
Features
- ZATCA Phase 2 (Fatoora Integration Phase) Full Compliance
- Standard Tax Invoice (B2B) & Simplified Tax Invoice (B2C) XML Generation (UBL 2.1)
- Cryptographic Stamp & SHA-256 Invoice Hashing
- Phase 2 Compliant Base64 TLV QR Code Generation
- CSID Certificate Onboarding (Compliance CSID & Production CSID)
- ZATCA API Integration for Invoice Clearance & Reporting
- Seamless Integration with Sales & Accounting Modules
- REST API endpoints
- Arabic & English translations
Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.2 | ^8.3 |
| Laravel | ^11.0 | ^12.0 |
| PHP Extensions | ext-simplexml, ext-openssl |
Installation
composer require dev-3bdulrahman/zatca
Publish and run migrations:
php artisan vendor:publish --provider="Dev3bdulrahman\Zatca\ZatcaServiceProvider"
php artisan migrate
Service Provider
Auto-discovered via Laravel package discovery. Manual registration in bootstrap/providers.php:
Dev3bdulrahman\Zatca\ZatcaServiceProvider::class,
Changelog
See CHANGELOG.md for release history.
License
MIT License © Abdulrahman