A simplified guideline for integrating your API with ZATCA (ZAkat, Tax & Customs Authorization) e-invoicing API Written in PHP (Laravel Friendly)
- Official Documentation
- [My Documentation (Easier, Shorter & Simpler)] Soon...
- Downloading ZATCA SDK, Requires Java 11
- The SDK installation scripts provided by ZATCA have errors, replace
install.bat
(soon) &install.sh
files with the ones uploaded in this repo. Then follow their steps on the link for installation as normal - Samples for XMLs are inside the SDK extracted zip file (
Data/Samples/
folder) - Also, Copy the
Data/
folder after extraction and paste in inside theConfiguration/
folder
- The SDK installation scripts provided by ZATCA have errors, replace
- PHP installed (preferably v8.1+)
scratches/
: Trying here and there, it's working but a bit messy. You can just ignore itfinal/
: Everything is organized and accessibleinstallation-scripts
: The installation scripts refactored (official ZATCA scripts has issues)-
.sh
script -
.bat
script => in progress
-
const.php
: All constants, templates & static data are defined hereZatca.php
: TheZATCA
class file, all methods and logic is insiderequests.php
: The testing file, we run this file to test the methods inside theZatca
class