Download the PHP package xhubio/shopware-invoice-api-xhub without Composer

On this page you can find all versions of the php package xhubio/shopware-invoice-api-xhub. 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 shopware-invoice-api-xhub

Invoice-api.xhub for Shopware

CI

Free, MIT-licensed connector between Shopware 6.6/6.7 and the invoice-api.xhub.io e-invoicing API. Generates EU-compliant electronic invoices (PDF, XRechnung, ZUGFeRD) directly from Shopware orders.

Deutsche Dokumentation: README.de.md

Features

Installation

Via Composer (recommended)

Manual ZIP

  1. Download the latest InvoiceApiXhub-*.zip from GitHub Releases.
  2. Extract to custom/plugins/InvoiceApiXhub in your Shopware installation.
  3. Run bin/console plugin:refresh && bin/console plugin:install --activate InvoiceApiXhub.
  4. Clear the cache: bin/console cache:clear.

Configuration

  1. Sign up at invoice-api.xhub.io and generate an API key in the console.
  2. In Shopware Admin: Extensions -> My Extensions -> "Invoice-api.xhub for Shopware" -> "..." menu -> Configure.
  3. Fill in:
    • API connection: API key + base URL (default: https://service.invoice-api.xhub.io)
    • Document defaults: Country, Format, Trigger (when to fire), Email-attach toggle, Payment due days
    • Invoice numbering: Format (e.g. 2026-{seq:0000} for §14 UStG), reset mode
    • Seller: Your business details + tax ID + bank account (IBAN/BIC required for some country profiles)
    • Country specific (DE): Default Leitweg-ID for B2G XRechnung
  4. Save.

How to test (review walkthrough)

This section guides the Shopware Marketplace reviewer through a complete test of the plugin. It works against a Shopware installation with the plugin installed and configured per the section above.

Prerequisites:

Test 1 — Auto-generation on order completion

  1. Open Admin -> Orders -> select a test order with status open.
  2. Transition the order to completed (Order status -> "Done").
  3. Wait ~5 seconds (Symfony Messenger sync transport processes in-request).
  4. Refresh the order detail page -> scroll to the bottom of the General tab.
  5. Expected: A new card "Invoice-api.xhub" appears with:
    • "Invoice actions" sub-card showing Filename: INV-{order-number}.pdf and Generated at: <ISO timestamp>
    • "History" sub-card showing one entry with status success

Test 2 — Re-generate

  1. On the same order, click the "Re-generate invoice" button.
  2. Expected: Filename and Generated-at update to current timestamp; History gains another success entry.

Test 3 — Download

  1. Click the "Download" button.
  2. Expected: Browser downloads INV-{order-number}.pdf (~20-25 KB), a valid PDF/A-3 file.

Test 4 — XRechnung format

  1. Configuration -> set Format to XRechnung (DE).
  2. Re-generate.
  3. Expected: Filename becomes INV-{order-number}_xrechnung.xml, content is valid UBL 2.1 with BIS 3.0 / EN 16931 customizationID.

Test 5 — Refund triggers credit-note (optional)

  1. Open Order -> Refund the order_transaction (admin -> Refund button).
  2. Expected: A new generation event fires with type=credit_note and negated amounts.

Reviewer note

For the review process we provide a sandbox API key with the "review" tag — please email [email protected] with your reviewer ID, and we will send you a key valid for the duration of the review.

The plugin makes outbound HTTP requests to https://service.invoice-api.xhub.io for invoice generation. Data sent: order line items, billing/shipping addresses, configured seller info. No data is sent before the user has explicitly configured the API key. Privacy policy: https://invoice-api.xhub.io/privacy

External services disclosure

This plugin connects to invoice-api.xhub.io (operator: xhub.io) for invoice generation. The plugin POSTs the order's line items, billing address, configured seller info, and tax breakdown to the API and receives a compliant invoice file. No data is sent before the user has configured an API key, and only when the configured order-state trigger fires.

Business model

The plugin is free under MIT license, distributed via GitHub, packagist.org, and (planned) the Shopware Store. Revenue lives in the customer's separate subscription to invoice-api.xhub.io. This is the same SaaS-companion model used by Stripe, Mollie, and PayPal on Shopware. There is no Pro tier inside the plugin and no licence-key check.

Compatibility

Development

See docs/SETUP-WALKTHROUGH-DOCKER.md for a one-command Docker-based dev/test stack.

Support

License

MIT — see LICENSE.md


All versions of shopware-invoice-api-xhub with dependencies

PHP Build Version
Package Version
Requires shopware/core Version ^6.6 || ^6.7
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 xhubio/shopware-invoice-api-xhub contains the following files

Loading the files please wait ...