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

# PHP

{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## 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.md?tab=php).

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

See the dedicated documentation for [instrumenting your PHP application](https://docs.datadoghq.com/tracing/setup/php.md) 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.md) 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.md).

### 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.md) 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/)
