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

Prev Next

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.