---
title: "PHP APM with Heroku"
slug: "php-apm-with-heroku"
description: "Learn how to set up Java APM Profiler in your PHP app on Heroku. Add Stackify Buildpack, configure it, and verify performance on Retrace dashboard."
updated: 2020-08-10T21:07:46Z
published: 2020-08-10T21:07:47Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP APM with Heroku

This document details how to install the **Java APM Profiler** in your **PHP** application running on **Heroku**.

## PHP Application Setup

### Add Buildpack

```
heroku buildpacks:add https://github.com/stackify/heroku-buildpack-stackify.git
```

          
          

Ensure that the **Stackify Buildpack** is installed after the base php buildpack.

### Configure Buildpack

```
heroku config:set STACKIFY_KEY="XXXXXXXXXX"
heroku config:set STACKIFY_APPLICATION_NAME="My Application" 
heroku config:set STACKIFY_ENVIRONMENT_NAME="Production"
```

Set `STACKIFY_KEY` to your **Stackify Activation Key**.

## Verify

Deploy changes to Heroku and make requests. You can then verify results in the Retrace dashboard.
