For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/integrations/php.md. A documentation index is available at /llms.txt.

PHP

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [email protected].

Overview

The Datadog-PHP integration allows you to collect and monitor your PHP application logs, traces, and custom metrics.

Setup

Metric collection

See the dedicated documentation for collecting PHP custom metrics with DogStatsD.

Trace collection

See the dedicated documentation for instrumenting your PHP application to send its traces to Datadog.

Log collection

Available for Agent v6.0+

See the dedicated documentation on how to setup PHP log collection to forward your logs to Datadog.

Profile collection

See the dedicated documentation for enabling the PHP profiler.

App & API Protection (AAP)

See the dedicated documentation for securing your PHP application to enable App & API Protection (AAP).

Troubleshooting

Need help? Contact Datadog support.

Further Reading