Download the PHP package horstoeko/zugferd without Composer

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

ZUGFeRD/XRechnung/Factur-X

Status

Latest Stable Version PHP version License

CI Release Status

Latest information

[!NOTE] Added Resources Section section to this document

[!NOTE] See our new class documentation wiki

Table of Contents

License

The code in this project is provided under the MIT license.

Overview

With horstoeko/zugferd you can read and write xml files containing electronic invoice data in the Minimum-, Basic-, EN16931-, Extended- and XRechnung Profile. In addition, it is possible to attach the XML data to an existing PDF file, which was created from an ERP system, for example. If both an XML file (or XML string) and a PDF file (or a PDF in the form of a string) exist, then a compliant PDF file with attachment can be created using the ZugferdDocumentPdfMerger class.

The advantage of this library is that you don't have to worry about whether a particular XML element exists in a desired profile - you can use the same program code for all supported profiles.

Supported profiles

[!IMPORTANT] This package provides only support for CII-Syntax - not UBL-Syntax

Further information

Related projects

Dependencies

This package makes use of

Resources

Our Wiki

We offer you a wiki that is currently under construction. This wiki lives from your questions, but also from your cooperation. If you find that something is unclear or not described at all during your work with this library, please let us know.

You can find our Wiki here...

Installation

There is one recommended way to install horstoeko/zugferd via Composer:

Usage

For detailed explanation you may have a look in the examples of this package and the documentation attached to every release.

Configuration

This library can be configured in various ways. For more information please visit our Wiki.

Reading a xml file

The central entry point to read XML data is the class ZugferdDocumentReader. Among other things, this provides methods for reading header and line information, as can be seen in the following example:

Reading a pdf file with xml attachment

Reading invoice data from a PDF is similar: you just need to use the ZugferdDocumentPdfReader class instead of ZugferdDocumentReader:

The further reading of the invoice data is then identical with Reading a xml file

Writing a xml file

The ZugferdDocumentBuilder class is again the central entry point to generate compliant XML data:

Writing a pdf file with attached xml file

Use the class if you already have an existing print output of the invoice (for example from an ERP system) and want to add an XML data stream to the existing PDF:

Merge existing PDF and XML

Let's assume we already have a compliant XML (for example in the Comfort profile) and a PDF that already contains the print layout. Then it is possible to merge these two files into a compliant PDF (with XML attachment) using the class .

XML and/or PDF do not have to be available as a file. Strings containing the corresponding data can also be passed to the ZugferdDocumentPdfMerger class.

Validation

This library offers several options for checking and validating a document. Please visit the corresponding page in our Wiki.


All versions of zugferd with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
jms/serializer Version ^3
goetas-webservices/xsd2php-runtime Version ^0.2.13
ext-simplexml Version *
symfony/validator Version ^5|^6|^7
smalot/pdfparser Version ^0|^2
setasign/fpdf Version ^1
setasign/fpdi Version ^2
symfony/yaml Version ^5|^6|^7
symfony/process Version ^5|^6|^7
horstoeko/stringmanagement Version ^1
horstoeko/mimedb Version ^1
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 horstoeko/zugferd contains the following files

Loading the files please wait ....