Skip to main content

Install AppSignal for PHP package

Install AppSignal for PHP:
Shell
composer require appsignal/appsignal-php

Initialize AppSignal

Run the install command to scaffold the configuration file, install framework auto-instrumentation, and send example data to AppSignal:
Shell
vendor/bin/appsignal install --push-api-key=<push-api-key> --collector-endpoint=<collector-endpoint> --app-name=<app-name> --app-environment=<your-environment>
The appsignal install command detects your application environment, installs auto-instrumentation packages, scaffolds config/appsignal.php in your project root, sends example data to AppSignal, and updates the .env file if necessary. Learn more about the install command.