Naar hoofdinhoud gaan
Configureer AppSignal voor PHP via het config/appsignal.php-bestand. Het appsignal install-commando maakt dit bestand voor u aan.
Shell
vendor/bin/appsignal install

AppSignal configureren

Open config/appsignal.php en stel de vereiste waarden in:
return [
	'active' => true,
	'app_name' => 'My app',
	'environment' => 'production',
	'push_api_key' => env('APPSIGNAL_PUSH_API_KEY'),
	'collector_endpoint' => env('APPSIGNAL_COLLECTOR_ENDPOINT'),
];
Stel de Push API-sleutel en de URL van het collector-endpoint in uw .env-bestand in:
.env
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.
Shell
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” 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 en wij helpen u de installatie af te ronden. Alle beschikbare AppSignal-configuratie-opties worden vermeld op de pagina met configuratie-opties.