> ## 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-configuratie

Configureer AppSignal voor PHP via het `config/appsignal.php`-bestand. Het `appsignal install`-commando maakt dit bestand voor u aan.

```sh Shell theme={null}
vendor/bin/appsignal install
```

## AppSignal configureren

Open `config/appsignal.php` en stel de vereiste waarden in:

<CodeGroup>
  ```php title="Laravel" theme={null}
  return [
  	'active' => true,
  	'app_name' => 'My app',
  	'environment' => 'production',
  	'push_api_key' => env('APPSIGNAL_PUSH_API_KEY'),
  	'collector_endpoint' => env('APPSIGNAL_COLLECTOR_ENDPOINT'),
  ];
  ```

  ```php title="Symfony" theme={null}
  return [
  	'active' => true,
  	'app_name' => 'My app',
  	'environment' => 'production',
  	'push_api_key' => $_ENV['APPSIGNAL_PUSH_API_KEY'],
  	'collector_endpoint' => $_ENV['APPSIGNAL_COLLECTOR_ENDPOINT'],
  ];
  ```

  ```php title="Vanilla PHP" theme={null}
  return [
  	'active' => true,
  	'app_name' => 'My app',
  	'environment' => 'production',
  	'push_api_key' => $_ENV['APPSIGNAL_PUSH_API_KEY'],
  	'collector_endpoint' => $_ENV['APPSIGNAL_COLLECTOR_ENDPOINT'],
  ];
  ```
</CodeGroup>

Stel de Push API-sleutel en de URL van het collector-endpoint in uw `.env`-bestand in:

```bash title=".env" theme={null}
APPSIGNAL_PUSH_API_KEY=<your-push-api-key>
APPSIGNAL_COLLECTOR_ENDPOINT=<your-collector-endpoint-url>
```

AppSignal verstrekt de Push API-sleutel en de URL van het collector-endpoint wanneer u een nieuwe applicatie aanmaakt.

## Configuratie valideren

Het AppSignal voor PHP-pakket bevat een `appsignal validate`-commando om te controleren of de huidige configuratie geldig is.

```sh Shell theme={null}
vendor/bin/appsignal validate
> The AppSignal config is valid.
```

## De app testen

Zodra uw applicatie geconfigureerd is, start u deze en controleert u of er gegevens binnenkomen in AppSignal. De pagina ["Performance > Traces"](https://appsignal.com/redirect-to/app?to=performance/traces) is een goede plek om te beginnen; daar ziet u voorbeelden van traces uit uw applicatie.

Als u na het volgen van de installatie-instructies nog steeds geen gegevens ziet, [neem dan contact op met support](mailto:support@appsignal.com?subject=PHP%20installation%20issue) en wij helpen u de installatie af te ronden.

Alle beschikbare AppSignal-configuratie-opties worden vermeld op de [pagina met configuratie-opties](/php/configuration/options).
