Download the PHP package yr-group/laravel-zatca without Composer
On this page you can find all versions of the php package yr-group/laravel-zatca. 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 laravel-zatca
Laravel ZATCA Package
Easy-to-use Laravel package for ZATCA (Saudi Arabian E-Invoicing) Phase 1 and Phase 2 integration.
Features
- ✅ Phase 1: Simple QR Code generation for invoices
- ✅ Phase 2: Full E-Invoicing integration with ZATCA
- CSR (Certificate Signing Request) generation
- Compliance CSID acquisition
- Production CSID acquisition
- Invoice signing and submission
- Support for both B2B (reporting) and B2C (clearance) invoices
Installation
-
Require the package
-
Publish the configuration file:
- Configure your
.envfile:
Usage
Phase 1: QR Code Generation
Generate simple QR codes for invoices (for Phase 1 compliance):
Phase 2: Full E-Invoicing Integration
Step 1: Generate CSR (Certificate Signing Request)
Step 2: Get Compliance Certificate
Get an OTP from the ZATCA portal:
- Simulation: https://fatoora-simulation.zatca.gov.sa/
- Production: https://fatoora.zatca.gov.sa/
Step 3: Sign and Submit Invoice
Step 4: Get Production CSID (After Compliance Testing)
Test Mode Username & Password
You can get the username and password from the ZATCA portal. https://sandbox.zatca.gov.sa/IntegrationSandbox/preInvoice-api
API Reference
ZatcaPhaseOneService
ZatcaService (CSR Generation)
ZatcaAPIService
ZatcaInvoiceService
Configuration
The package uses the following configuration options (in config/zatca.php):
environment: ZATCA environment (simulationorproduction)otp: One-Time Password from ZATCA portalsolution_name: Your ERP/POS solution nameversion: Your solution versioncertificate_path: Path to store certificatesprivate_key_path: Path to store private keyssecret_path: Path to store secrets
Requirements
- PHP 8.1 or higher
- Laravel 11.0 or higher
- salla/zatca package
- prgayman/laravel-zatca package
License
MIT License
Credits
Built with ❤️ by YR-Group Yassen Sayed & Ramadan Ewis.
All versions of laravel-zatca with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/support Version ^11.0|^12.0
salla/zatca Version ^3.0
prgayman/laravel-zatca Version ^1.0
illuminate/support Version ^11.0|^12.0
salla/zatca Version ^3.0
prgayman/laravel-zatca Version ^1.0
The package yr-group/laravel-zatca contains the following files
Loading the files please wait ...