PHP SDK

For tools and AI agents: Markdown version

3.0.2

  • Point support links to support.blackfire.upsun.com

3.0.1

  • Deprecate the Profile.getProfileUrl method

3.0.0

  • Remove deprecated function of the version 2.0

2.6.0

  • Deprecate the _links.store usage in SDK

2.5.13

  • Display deprecation message about build in Sdk
  • Change the brand in versions and licenses

2.5.12

  • Support PHPUnit 10+

2.5.11

  • Add FrankenPHP profiler and subscriber for Symfony Runtime

2.5.10

Maintenance release ·

2.5.9

  • Prevent committing debug code

2.5.8

  • Fix Client's retry logic

2.5.7

  • Fix deprecations in return type declaration

2.5.6

  • [sdk] implement ProfileNotReadyException

2.5.5

  • Upgrade to PHP 8.4 to run functional tests
  • Fix CS

2.5.4

  • Fix CS

2.5.3

  • Minor perf improvment in uniqId generator

2.5.2

  • Add required defaultOption in BlackfiredHttpClient
  • Fix HttpClient when calling a relative URL

2.5.1

  • Remove documentation about samples feature

2.5.0

  • Deprecate the "samples" option

2.4.1

  • Fix deprecation message formatting

2.4.0

  • Add Behat support for the Symfony kernel browser

2.3.9

  • Fix CS

2.3.8

  • Fix CS

2.3.7

  • Fix CS

2.3.6

  • Send SDK version as part of the User Agent

2.3.5

  • enforce undefined step name when none is provided
  • fix `BlackfiredHttpClient` sampling

2.3.4

  • Ensure profiles processing is complete before binding them to a build

2.3.3

  • provide the `X-Blackfire-Profile-Uuid` response header when using `BlackfiredHttpClient`

2.3.2

  • Fix undefined array key error on bad Blackfire API response

2.3.1

  • Fix profile to build association when using a `BlackfiredHttpClient` instance

2.3.0

  • Add compatibility with version 2 of Blackfire builds, using "Json View"

2.2.0

  • Add maxRetries option to `getProfile()`

2.1.0

  • Add build uuid to Configuration

2.0.1

  • Remove call to removed method

2.0.0

  • Drop support of PHP 5.2 fallback
  • Remove deprecated methods of the version 1:
  • Blackfire/Client::createBuild, replaced by Blackfire/Client::startScenario
  • Blackfire/Client::endBuild, replaced by Blackfire/Client::closeScenario
  • Blackfire/Client::assertPhpUnit
  • Blackfire/Client::addJobInBuild, replaced by Blackfire/Client::addJobInScenario
  • Blackfire/Client::getReport, replaced by Blackfire/Client::getScenarioReport
  • Blackfire/LoopClient::promoteReferenceSignal
  • Blackfire/LoopClient::attachReference
  • Blackfire/Profile/Configuration::getBuild, replaced by Blackfire/Profile/Configuration::getScenario
  • Blackfire/Profile/Configuration::setBuild, replaced by Blackfire/Profile/Configuration::setScenario
  • Blackfire/Profile/Configuration::getReference
  • Blackfire/Profile/Configuration::setReference
  • Blackfire/Profile/Configuration::isNewReference
  • Blackfire/Profile/Configuration::setAsReference

1.35.0

  • Proper check of the probe feature for Octane integration

1.34.0

  • Update support URL
  • Add BlackfireProbe::setAttribute signature

1.33.0

  • Allow creating debug profile using PHP SDK

1.32.0

  • Use new intention feature when creating builds
  • Fix profile_title encoding
  • Update dependencies

1.31.0

  • Name transaction using latest API
  • Upgrade to PHP 8.1 to run functional tests

1.30.0

  • Add Laravel Octane integration
  • Add an optional argument 'transactionName' to the 'startTransaction' method

1.29.0

  • Add the Laravel Tests integration

1.28.0

  • Provide support for monitoring Symfony commands

1.27.2

  • Tweak exception messages

1.27.1

  • Fix Laravel integration

1.27.0

  • Add a Symfony Messenger integration
  • Add Monitoring integration for Laravel Artisan commands and Consumers
  • Update default agent socket on arm64

1.26.0

  • Retry HTTP request on specific cases
  • Scenarios should be closed after each test in manual start mode

1.25.1

  • Behat Support bug fix: start a deferred build only if there is no current build running

1.25.0

  • Add Behat support

1.24.0

  • Enable the use of Symfony web test cases with Blackfire

1.23.0

  • Add Blackfire\Profile::getUuid() method
  • Fix some docblocks

1.22.0

  • Add "dot-blackfire" protocol feature support in the probe
  • Remove duplicated data from BlackfireSpan
  • Better unsuccessful profiles detection
  • Add Profile return to help with auto-complete in TestCaseTrait::assertBlackfire

1.21.0

  • Replace the "_server" header in fallback probe by "context"

1.20.0

  • Add BlackfireSpan

1.19.2

  • Fix PHP 5.3 compatibility

1.19.1

  • Fix invalid header name breaking the Guzzle middleware with recent guzzle/psr7
  • Modify subprofile ID generator so that it's only ever composed of alphanumerics

1.19.0

  • Add Symfony HttpClient bridge
  • Fix compatibility with PHP 5.3
  • Fix sub-profile id generation to be compatible with url encoding

1.18.0

  • Deprecate methods and classes related to references

1.17.6

  • Fix PHPUnit bridge

1.17.5

  • Fix PHPUnit bridge

1.17.4

  • Fix profiling with Hoster environment

1.17.3

  • [PHPunit Bridge] Fix compatibility with PHP 5.x

1.17.3

  • [PHPunit Bridge] Fix compatibility with PHP 5.x

1.17.2

  • Remove headers from Blackfire\Exception\ApiException's message
  • Add method "getHeaders()" to Blackfire\Exception\ApiException

1.17.1

  • Fix usage of PHPUnit Bridge without assertions

1.17.0

  • Add proper version in the User-Agent header
  • Add User-Agent header as well as the X-Blackfire-User-Agent one
  • Add possibility to suffix the User Agent header

1.16.0

  • Update to use the Build API version 2
  • Add a new method `getBuildReport()` to get the Report of a full Build