> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AppSignal voor PHP - laadvolgorde van configuratie

U kunt AppSignal voor PHP configureren via het configuratiebestand `config/appsignal.php` of met omgevingsvariabelen.

De configuratie wordt geladen in een proces van drie stappen, beginnend bij de pakketstandaardwaarden en eindigend met het lezen van het configuratiebestand. De configuratie-opties kunnen worden gemengd zonder dat configuratie uit een andere optie verloren gaat.

## Laadvolgorde

* 1. [Pakketstandaardwaarden - `default`](#1-package-defaults)
* 2. [Omgevingsvariabelen - `env`](#2-environment-variables)
* 3. [Configuratiebestand - `file`](#3-config-file)

## 1. Pakketstandaardwaarden

Het pakket begint met het laden van zijn standaardconfiguratie, waarbij paden worden ingesteld en bepaalde functies worden ingeschakeld. De pakketstandaardwaarden vindt u in de [documentatie over configuratie-opties](/php/configuration/options).

## 2. Omgevingsvariabelen

AppSignal zoekt naar configuratie in omgevingsvariabelen. Wanneer deze worden gevonden, overschrijven ze de pakketstandaardwaarden.

U kunt omgevingsvariabelen doorgeven aan eenmalige PHP-scripts:

```bash Shell theme={null}
export APPSIGNAL_APP_NAME="my custom app name"
```

of voor uw PHP-applicatie wordt dit doorgaans gedaan via een `.env`-bestand:

```bash title=".env" theme={null}
APPSIGNAL_ACTIVE=true
APPSIGNAL_APP_NAME="my custom app name"
APPSIGNAL_PUSH_API_KEY=local
```

Ondersteunde omgevingsvariabelen worden gedocumenteerd in de `env_key`-definitie voor elke [configuratieoptie](/php/configuration/options).

## 3. Configuratiebestand

AppSignal zoekt naar configuratie in het bestand `config/appsignal.php`. Opties in dit bestand overschrijven alle configuratie-opties die in eerdere stappen zijn ingesteld.

```php title="config/appsignal.php" theme={null}
return [
	'app_name' => 'my custom app name',
	// ... other options
];
```

Ondersteunde sleutels worden gedocumenteerd in de `config_key`-definitie voor elke [configuratieoptie](/php/configuration/options).
