Blackfire has built-in support for projects. The integration is made simpler as Blackfire agent and probe are installed and enabled by default on all accounts.


Add the blackfire PHP extension to the project file:

        - blackfire

Set the Blackfire server credentials as environment variables (run this command from the project root directory or pass the --project flag):

To auto-fill server credentials in the command below, or first

platform var:create --name=BLACKFIRE_SERVER_ID --level=environment --value=XXXX
platform var:create --level=environment --name=BLACKFIRE_SERVER_TOKEN --value=XXXX

Builds Requires Enterprise

Follow these steps to enable Blackfire builds on all your platform’s environments each time a branch is deployed (after a push, merge, or redeploy event):

  • Download and install the platform utility;
  • Enable the Blackfire’s integration on

To auto-fill token credentials and environment UUID in the command below, or first

platform integration:add --type=webhook --url=''

The command asks several questions. Hit enter to accept the default for all of them. If you get a permission error, ask a project admin to upgrade your account or ask someone who is an admin to run this command.

Now, whenever you push to a environment, Blackfire will automatically trigger a build for this specific environment. Blackfire scenarios will be run for all your pull requests.

Github integration

If you are using Github and if you have setup the synchronization between GitHub and, don’t forget to configure the Blackfire GitHub notification channel. That way, Blackfire will post a status on your GitHub pull requests.

Develop on GitHub, Deploy to and Test on Blackfire Requires Enterprise

Here is a full video tutorial to get you started with the integration of the three services: