Download the PHP package saudizatca/laravel-zatca without Composer

On this page you can find all versions of the php package saudizatca/laravel-zatca. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-zatca

ZATCA E-Invoicing Laravel Package

ZATCA Phase 2 Laravel PHP 8.1+ MIT License

Complete Laravel package for ZATCA (Saudi Arabia) E-Invoicing Phase 2 integration. Supports all three environments: Sandbox, Simulation, and Production.

Features

Requirements

Installation

Publish configuration:

Run migrations:

Configuration

Add to your .env file:

Quick Start

1. Check Status

2. Generate CSR

3. Request Compliance CSID

Get OTP from ZATCA portal, then:

4. Request Production CSID (after compliance tests pass)

5. Submit Invoices

Programmatic Usage

Generate CSR

Create and Submit Invoice

Generate QR Code (Phase 1 - Basic)

Working with Existing XML

Invoice Types

Type Description Submission Method
standard B2B Tax Invoice Clearance (real-time)
simplified B2C Simplified Invoice Reporting (within 24h)
credit_note Credit Note Clearance
debit_note Debit Note Clearance

Artisan Commands

Command Description
zatca:status Check integration status
zatca:csr Generate CSR
zatca:compliance-csid Request compliance CSID
zatca:production-csid Request production CSID
zatca:report Submit simplified invoice
zatca:clear Submit standard invoice
zatca:validate Validate XML or QR code

Database Models

ZatcaCertificate

Stores certificate information:

ZatcaInvoice

Tracks all invoices:

ZatcaLog

Detailed operation logs:

Environments

Sandbox

Simulation

Production

Testing

Run the test suite:

Test Structure

Error Handling

All exceptions extend ZatcaException:

Logging

Configure logging in config/zatca.php:

Add to config/logging.php:

Security

Troubleshooting

Certificate Issues

API Connection Issues

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

License

This package is open-sourced software licensed under the MIT license.

Support

For issues and feature requests, please use the GitHub issue tracker.

References


All versions of laravel-zatca with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
ext-openssl Version *
ext-dom Version *
ext-mbstring Version *
ext-json Version *
ext-gmp Version *
ext-xmlwriter Version *
ext-curl Version *
ext-zip Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package saudizatca/laravel-zatca contains the following files

Loading the files please wait ...