---
title: "GermanyServiceProvider – API-Referenz · Quittio"
description: "Laravel integration of the German country pack (discovered automatically): the base rates of quittio.countries.de.base_rates and of the file written by quittio:base-rate:update are registered with BaseRates, so that DefaultInterest uses them."
canonical_url: "https://quittio.dev/docs/api/Quittio/Country/DE/Laravel/GermanyServiceProvider"
locale: de
meta:
  "og:description": "Laravel integration of the German country pack (discovered automatically): the base rates of quittio.countries.de.base_rates and of the file written by quittio:base-rate:update are registered with BaseRates, so that DefaultInterest uses them."
  "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": "GermanyServiceProvider – 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) \\ [Country](https://quittio.dev/docs/api/Quittio/Country) \\ [DE](https://quittio.dev/docs/api/Quittio/Country/DE) \\ [Laravel](https://quittio.dev/docs/api/Quittio/Country/DE/Laravel)

# GermanyServiceProvider

final class in quittio/country-de · extends `Illuminate\Support\ServiceProvider`

`Quittio\Country\DE\Laravel\GermanyServiceProvider` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/country-de/src/Laravel/GermanyServiceProvider.php#L22)

Laravel integration of the German country pack (discovered automatically): the base rates of quittio.countries.de.base\_rates and of the file written by quittio:base-rate:update are registered with BaseRates, so that DefaultInterest uses them.

The configuration of the pack is quittio.countries.de: config/quittio/countries/de.php (tag quittio-de-config) or the section 'de' of 'countries' in config/quittio.php. The key quittio-de (config/quittio-de.php) of 0.3 is still read until 1.0, with a deprecation.

## Constants \#

| Constant | Value | Description |
| --- | --- | --- |
| `CONFIG_KEY` | `'quittio.countries.de'` | Configuration key of the pack. |

## Methods \#

| Method | Description |
| --- | --- |
| `->boot()` | Registers the configured and the updated base rates, the command and the publishable configuration. |
| `::readFile()` | |
| `->register()` | Merges the defaults of the pack (and the keys of config/quittio-de.php) into quittio.countries.de. |
| `::registerBaseRates()` | Registers the rates of the file and then those of the configuration (which win). |

### `boot()`#

```
public function boot(): void
```

Registers the configured and the updated base rates, the command and the publishable configuration.

### `readFile()`#

```
public static function readFile(string $file): array<array-key, mixed>
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$file` | `string` | |

<dl><dt>Returns</dt>
<dd><code>array&lt;array-key, mixed&gt;</code></dd>
</dl>

### `register()`#

```
public function register(): void
```

Merges the defaults of the pack (and the keys of config/quittio-de.php) into quittio.countries.de.

### `registerBaseRates()`#

```
public static function registerBaseRates(Repository $config): void
```

static

Registers the rates of the file and then those of the configuration (which win).

| Parameter | Type | Description |
| --- | --- | --- |
| `$config` | `Illuminate\Contracts\Config\Repository` | |

```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/Country/DE/Laravel/GermanyServiceProvider#webpage","@type":"WebPage","description":"Laravel integration of the German country pack (discovered automatically): the base rates of quittio.countries.de.base_rates and of the file written by quittio:base-rate:update are registered with BaseRates, so that DefaultInterest uses them.","name":"GermanyServiceProvider – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Country/DE/Laravel/GermanyServiceProvider","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Country/DE/Laravel/GermanyServiceProvider"]}],"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"}]}
```