PHP 5.3+
A long-lived project that still receives updates
Blackfire.io PHP SDK
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

behat/behat
^3.8
friends-of-behat/mink-browserkit-driver
^1.4
friends-of-behat/mink-extension
^2.5
friends-of-behat/symfony-extension
^2
guzzlehttp/psr7
^1.6 || ^2.0
^8.81 || ^9.0 || ^10.0 || ^11.0
^8.81 || ^9.0 || ^10.0 || ^11.0
^8.81 || ^9.0 || ^10.0 || ^11.0
^1.2 || ^2.0
phpunit/phpunit
^9.5 || ^10.0 || ^11.0 || ^12.0
psr/http-message
^1.0 || ^2.0
symfony/browser-kit
^5.1 || ^6.0 || ^7.0
symfony/framework-bundle
^5.1 || ^6.0 || ^7.0
symfony/http-client
^5.1 || ^6.0 || ^7.0
symfony/messenger
^5.1 || ^6.0 || ^7.0
symfony/panther
^1.0 || ^2.0
symfony/phpunit-bridge
^5.2 || ^6.0 || ^7.0

Runtime

composer/ca-bundle
^1.0
 Project Readme

Blackfire PHP SDK

Install the Blackfire PHP SDK via Composer:

$ composer require blackfire/php-sdk

Blackfire Client

See https://docs.blackfire.io/php/integrations/sdk

PhpUnit Integration

See https://docs.blackfire.io/php/integrations/phpunit

Proxy

If you want to inspect the traffic between profiled servers and blackfire's servers, you can use a small proxy script provided in this repository. Please read the instructions in ./bin/blackfire-io-proxy.php to do so.

PHP Probe

WARNING: This code should only be used when installing the Blackfire PHP extension is not possible.

This repository provides a Blackfire PHP Probe implementation that should only be used under the following circumstances:

  • You already have XHProf installed and cannot install the Blackfire PHP extension (think PHP 5.2);

  • You want a fallback in case the Blackfire PHP extension is not installed on some machines (manual instrumentation will be converted to noops).

Read more about how to use this feature on Blackfire's blog.

Blackfire Support

If you are facing any issue with using the Blackfire PHP SDK, please check our support site or reach out to support@blackfire.io.