Download the PHP package saleh7/php-zatca-xml without Composer

On this page you can find all versions of the php package saleh7/php-zatca-xml. 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 php-zatca-xml

php-zatca-xml

php Version Packagist Stars Packagist Downloads Packagist Version License

Please feel free to contribute if you are missing features or tags
View Examples Β· Report a bug Β· Request a feature Β· Ask questions

πŸ“– Introduction

PHP-ZATCA-XML is an unofficial PHP library for generating ZATCA Fatoora e-invoices. It simplifies the process of creating compliant e-invoices, generating QR codes, handling certificates, and submitting invoices to ZATCA’s servers.

Designed for easy integration, this library provides developers with a customizable, robust, and efficient toolkit to automate the ZATCA e-invoicing process in PHP applications.

πŸš€ Planned Features

We are actively working on expanding the capabilities of this library. If you're a developer and would like to contribute, your help is highly appreciated! πŸ’‘

πŸ’‘ Got an idea? Feel free to suggest it or contribute!
Let's build something great together! πŸš€

✨ Features

πŸ“Œ Requirements

βœ… PHP Version

βœ… Required PHP Extensions

Ensure the following PHP extensions are installed and enabled:

πŸ›  Installation

πŸš€ Usage

This library simplifies the process of generating ZATCA-compliant e-invoices, handling certificates, signing invoices, and submitting them to ZATCA’s API. Below are the main usage examples:


πŸ“œ 1. Generating a Compliance Certificate

First, generate a certificate signing request (CSR) and private key:

πŸ” 2. Requesting a Compliance Certificate from ZATCA

Once the CSR is generated, you need to request a compliance certificate from ZATCA's API.

🧾 3. Generating an Invoice XML

Now that we have the compliance certificate, we can generate a ZATCA-compliant e-invoice in XML format.

✍️ 4. Signing the Invoice XML

Before submitting the invoice to ZATCA, we need to digitally sign it using the compliance certificate obtained earlier.

πŸ“€ 5. Submitting the Signed Invoice to ZATCA

Once the invoice is digitally signed, it can be submitted to ZATCA’s API for compliance validation and clearance.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

πŸ‘¨β€πŸ’» Contributors


sevaske

Thank you all for your continuous support and contributions!

Special Credits

This project has also benefited from some code snippets and ideas from the SallaApp/ZATCA repository. We appreciate their contribution to the community.

License

This project is licensed under the MIT License.


All versions of php-zatca-xml with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-mbstring Version *
ext-dom Version *
ext-libxml Version *
ext-openssl Version *
ext-hash Version *
sabre/xml Version ^4.0
guzzlehttp/guzzle Version ^7.9
phpseclib/phpseclib Version ^3.0
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 saleh7/php-zatca-xml contains the following files

Loading the files please wait ....