Download the PHP package sevaske/zatca-api without Composer
On this page you can find all versions of the php package sevaske/zatca-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package zatca-api
ZATCA API PHP Client
This is a simple PHP library to work with the ZATCA API. You can send invoice data, check invoice status, verify compliance, and manage certificates easily.
If you’re looking for a library to generate XML invoices, you can use this one: https://github.com/sevaske/php-zatca-xml
Features
- Supports all major ZATCA API endpoints
- Simple authentication with certificate and secret
- Response handling via typed response objects
- Environment support: sandbox, simulation, production
- Uses any PSR-18 compatible HTTP client (e.g., Guzzle)
Installation
Quick Start
Available Methods
Method | Description |
---|---|
reporting() |
Submit invoice data to ZATCA |
clearance() |
Request invoice clearance status |
compliance() |
Verify invoice compliance |
complianceCertificate() |
Request compliance certificate |
productionCertificate() |
Obtain production certificate |
renewProductionCertificate() |
Renew production certificate |
Exception handling
The library throws the following exceptions which you can catch and handle:
ZatcaException
— general exception classZatcaRequestException
— errors during the HTTP requestZatcaResponseException
— errors processing the API response
All versions of zatca-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-json Version *
psr/http-message Version ^2.0
psr/http-client Version ^1.0
ext-json Version *
psr/http-message Version ^2.0
psr/http-client Version ^1.0
The package sevaske/zatca-api contains the following files
Loading the files please wait ....