config/appsignal.php config file, or with environment variables.
The configuration is loaded in a three-step process, starting with the package defaults and ending with reading the config file. The configuration options can be mixed without losing configuration from a different option.
Load order
- Package defaults
The package starts with loading its default configuration, setting paths and enabling certain features. The package defaults can be found in the configuration options documentation.
- Environment variables
AppSignal looks for configuration in environment variables. When found, these override the package defaults.
You can pass environment variables to one-off PHP scripts:
Shell
.env file:
.env
env_key definition for each configuration option.
- Config file
AppSignal looks for configuration in the config/appsignal.php file. Options in this file override all configuration options set in previous steps.
config/appsignal.php
config_key definition for each configuration option.