---
title: "ProvidesFormats – API-Referenz · Quittio"
description: "A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them. AbstractCountryPack implements it with empty defaults."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities/ProvidesFormats"
locale: de
meta:
  "og:description": "A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them. AbstractCountryPack implements it with empty defaults."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "ProvidesFormats – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Countries](https://quittio.dev/docs/api/Quittio/Core/Countries) \\ [Capabilities](https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities)

# ProvidesFormats

interface in quittio/core

`Quittio\Core\Countries\Capabilities\ProvidesFormats` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Countries/Capabilities/ProvidesFormats.php#L15)

A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them. AbstractCountryPack implements it with empty defaults.

## Methods \#

| Method | Description |
| --- | --- |
| `->formatAliases()` | Further names of formats: alias => format key, e.g. \['xrechnung' => 'xrechnung-cii']. |
| `->formats()` | Formats of the pack; a format with the key of a registered one replaces it. |
| `->serializers()` | Serializers for the syntaxes of the pack's formats; a serializer replaces the one of its syntax. |

### `formatAliases()`#

```
public function formatAliases(): array<string, string>
```

Further names of formats: alias => format key, e.g. \['xrechnung' => 'xrechnung-cii'].

<dl><dt>Returns</dt>
<dd><code>array&lt;string, string&gt;</code></dd>
</dl>

### `formats()`#

```
public function formats(): list<OutputFormat>
```

Formats of the pack; a format with the key of a registered one replaces it.

<dl><dt>Returns</dt>
<dd><code>list&lt;<a href="https://quittio.dev/docs/api/Quittio/Core/Formats/OutputFormat">OutputFormat</a>&gt;</code></dd>
</dl>

### `serializers()`#

```
public function serializers(): list<XmlSerializer>
```

Serializers for the syntaxes of the pack's formats; a serializer replaces the one of its syntax.

<dl><dt>Returns</dt>
<dd><code>list&lt;<a href="https://quittio.dev/docs/api/Quittio/Core/Xml/XmlSerializer">XmlSerializer</a>&gt;</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities/ProvidesFormats#webpage","@type":"WebPage","description":"A country pack that brings output formats, e.g. a national e-invoice format, with their aliases and the serializers of their syntaxes. Quittio::registerCountry() registers them. AbstractCountryPack implements it with empty defaults.","name":"ProvidesFormats – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities/ProvidesFormats","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities/ProvidesFormats"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```