> ## 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 for PHP installation

### Install AppSignal for PHP package

Install AppSignal for PHP:

```bash Shell theme={null}
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:

```bash Shell theme={null}
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](/php/command-line/install).
