---
title: PHP
description: Collect metrics, traces, and logs from your PHP applications.
breadcrumbs: Docs > Integrations > PHP
---

# PHP

## Overview{% #overview %}

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

## Setup{% #setup %}

### Metric collection{% #metric-collection %}

See the dedicated documentation for [collecting PHP custom metrics with DogStatsD](https://docs.datadoghq.com/developers/dogstatsd/?tab=php).

### Trace collection{% #trace-collection %}

See the dedicated documentation for [instrumenting your PHP application](https://docs.datadoghq.com/tracing/setup/php/) to send its traces to Datadog.

### Log collection{% #log-collection %}

*Available for Agent v6.0+*

See the dedicated documentation on how to [setup PHP log collection](https://docs.datadoghq.com/logs/log_collection/php/) to forward your logs to Datadog.

### Profile collection{% #profile-collection %}

See the dedicated documentation for [enabling the PHP profiler](https://docs.datadoghq.com/profiler/enabling/php/).

### App & API Protection (AAP){% #app--api-protection-aap %}

See the dedicated documentation for [securing your PHP application](https://docs.datadoghq.com/security/application_security/setup/php/) to enable App & API Protection (AAP).

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).

## Further Reading{% #further-reading %}

- [PHP monitoring with Datadog APM and distributed tracing](https://www.datadoghq.com/blog/monitor-php-performance/)
- [PHP logging: How to collect, customize, and analyze PHP logs](https://www.datadoghq.com/blog/php-logging-guide/)
