> ## 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 CLI: Install

> Command-line tool om AppSignal te installeren in een PHP-applicatie. Documentatie over gebruik, opties en configuratiemethoden.

export const VersionRequirements = ({versions = []}) => {
  if (!Array.isArray(versions) || versions.length === 0) {
    return null;
  }
  const boundaries = {
    upper: " or lower",
    exact: "",
    lower: " or higher"
  };
  const containerStyle = {
    marginTop: "0.5rem",
    marginBottom: "1.5rem"
  };
  const lineStyle = {
    display: "block",
    margin: "0 0 0.35rem 0",
    fontSize: "0.875rem",
    lineHeight: "1.4"
  };
  const pillBaseStyle = {
    display: "inline-block",
    padding: "0.1em 0.4em",
    borderRadius: "0.25rem",
    border: "1px solid",
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
    fontSize: "0.85em",
    fontWeight: 500
  };
  const pillColors = {
    "AppSignal for Elixir": {
      background: "#f3e8ff",
      borderColor: "#e9d5ff",
      color: "#9333ea"
    },
    "AppSignal for Front-end": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Go": {
      background: "#ccfbf1",
      borderColor: "#99f6e4",
      color: "#0d9488"
    },
    "AppSignal for JavaScript": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Node.js": {
      background: "#dcfce7",
      borderColor: "#bbf7d0",
      color: "#16a34a"
    },
    "AppSignal for Python": {
      background: "#dbeafe",
      borderColor: "#bfdbfe",
      color: "#2563eb"
    },
    "AppSignal for Ruby": {
      background: "#fee2e2",
      borderColor: "#fecaca",
      color: "#dc2626"
    },
    "AppSignal for Rust": {
      background: "#ffedd5",
      borderColor: "#fed7aa",
      color: "#ea580c"
    }
  };
  const defaultPillColor = {
    background: "#f4f4f5",
    borderColor: "#e4e4e7",
    color: "#52525b"
  };
  const getPillStyle = name => ({
    ...pillBaseStyle,
    ...pillColors[name] || defaultPillColor
  });
  const getBoundText = bound => {
    return boundaries[bound] || boundaries.lower;
  };
  return <div style={containerStyle}>
      {versions.map((v, i) => <p key={`${v.name}-${v.version}-${v.bound || "lower"}-${i}`} style={lineStyle}>
          This feature requires{" "}
          <code style={getPillStyle(v.name)}>{v.name}</code> version {v.version}
          {getBoundText(v.bound)}.
        </p>)}
    </div>;
};

<VersionRequirements
  versions={[
{ name: "AppSignal voor PHP", version: "0.5.0" }
]}
/>

Het install-commando configureert AppSignal in uw PHP-applicatie. Het commando doorloopt zes stappen:

1. Detecteert het framework van uw applicatie (Laravel, Symfony of platte PHP),
2. Installeert auto-instrumentatiepakketten,
3. Maakt een configuratiebestand aan in `config/appsignal.php` als dit nog niet bestaat,
4. Verzamelt de vereiste configuratiewaarden interactief, waarbij waarden die in uw omgeving zijn gevonden alvast worden ingevuld,
5. Stuurt voorbeeldgegevens (trace, exception en log) naar AppSignal om de configuratie te verifiëren,
6. Werkt het `.env`-bestand bij met ontbrekende configuratiewaarden.

## Gebruik

Voer het volgende terminalcommando uit vanuit de hoofdmap van uw project:

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

## Commando-opties

Met de opties van het `install`-commando kunt u vereiste configuratiewaarden meegeven of de demo overslaan.

| Optie                  | Beschrijving                                                            |
| ---------------------- | ----------------------------------------------------------------------- |
| `--push-api-key`       | AppSignal Push API-sleutel                                              |
| `--collector-endpoint` | URL van het AppSignal collector-endpoint                                |
| `--app-name`           | Naam van uw applicatie                                                  |
| `--app-environment`    | Omgeving van uw applicatie (bijv. `production`, `development`)          |
| `--skip-demo`          | Sla het verzenden van demogegevens over (slaat ook `.env`-updates over) |

Tenzij de optie `--skip-demo` wordt meegegeven, voert het `install`-commando automatisch [het `demo`-commando](/php/command-line/demo) uit.

Als alle configuratiewaarden via commando-opties worden meegegeven, worden de interactieve prompts volledig overgeslagen.

Bekijk de [AppSignal voor PHP-configuratiedocumentatie](/php/configuration/options) voor meer informatie over configuratie-opties.
