Releases: Kameleoon-new/client-php
Release list
PHP SDK 4.24.1
Bug fixes
- The access token is now renewed 5 minutes before its expiration, so that requests sent by the cron job are no longer rejected with a token that expires while they wait to be sent.
PHP SDK 4.24.0
Features
- Added new
setEventHandlermethod for subscribing to SDK events:EventType::DATAFILE_UPDATEnotifies when the SDK data file (configuration) is updated; handled withDataFileUpdateHandler.EventType::HTTP_REQUESTnotifies when SDK HTTP requests complete successfully or fail; handled withHttpRequestHandler. The handler is called once per each actual HTTP request attempt, including retries.- HTTP request events include the request type, HTTP status or failure details, and request duration.
- Passing
nulltosetEventHandlerclears the handler for the selected event type.
- Added the new
waitInitmethod, which ensures the SDK is ready for use. It returns immediately if the configuration has already been downloaded and is not outdated; otherwise, it synchronously downloads the configuration (as any other SDK method would), blocking until the download completes, fails, or the specified timeout expires. The method throws anInitializationexception (with the failure available viagetPrevious()) only if the SDK has no configuration at all: the configuration could not be downloaded and no valid local copy is available. If a local configuration exists but the update request fails, the method returns successfully and the SDK keeps using the existing configuration. - Added the new
isReadymethod, which returnstrueonce the SDK configuration has been successfully downloaded and a valid local copy is available (even if it has become outdated), andfalseotherwise. UnlikewaitInit, it returns immediately without making network requests or throwing. - Targeting conditions of an unknown (unsupported) type are now evaluated as
falseinstead oftrue, so visitors are no longer targeted by conditions the SDK cannot evaluate.
PHP SDK 4.23.0
Features
- Added new
requestBodySizeLimitBytes(request_body_size_limit_bytes) configuration parameter to control the request body file size limit.
PHP SDK 4.22.0
Features
- Added support for *during the current visit- and *during any of the last visits- settings across the following targeting conditions:
- Converted Goal
- Feature Flag
- Web Experiment
- Personalization
- Exclusive Campaign
PHP SDK 4.20.0
Features
- Introduced support for the Kameleoon
ApplicationVersiondata type, allowing the visitor’s application version to be set and used in targeting evaluation.
PHP SDK 4.19.0
Caution
The Cron job processing script was updated. If you are upgrading from a version prior to 4.4.0, please ensure that you are using the latest version of the script.
[!CAUTION]
This is the final notice regarding the legacy cron job script. According to our EOL policy, versions earlier than *4.4.0- have been end of life for more than one year.
Features
- Introduced a new
trackparameter foraddData. When set tofalse, the data is stored locally and used only for targeting evaluation; it is not sent to the Data API, helping to prevent duplicate data from being recorded. The default value istrue. This behavior is consistent with thetrackparameter used in evaluation methods such asgetVariation.
PHP SDK 4.18.0
Warning
The Cron job processing script was updated. If you are upgrading from a version prior to 4.4.0, please ensure that you are using the latest version of the script.
Features
- Introduced a new
getDataFilemethod. This method returns the current SDK configuration (also known as the data file) used for evaluation and targeting. It is *not- intended for production use to fetch variations for every feature flag in the returned list, as it is not optimized for performance. For that purpose, usegetVariationsinstead.getDataFileis mainly useful for debugging or QA, for example to let internal users manually select a variant for a specific feature flag in production.
Bug fixes
- Fixed an issue where *legal consent- was not taken into account during holdout evaluation.
PHP SDK 4.17.0
Warning
The Cron job processing script was updated. If you are upgrading from a version prior to 4.4.0, please ensure that you are using the latest version of the script.
Features
- Updated evaluation and tracking logic to comply with GDPR requirements when consent is not given:
- If behavior is partially blocked, the default variation will be returned.
- If behavior is completely blocked, an exception will be thrown.
PHP SDK 4.16.1
Warning
The Cron job processing script was updated. If you are upgrading from a version prior to 4.4.0, please ensure that you are using the latest version of the script.
PHP SDK 4.16.0
Warning
The Cron job processing script was updated. If you are upgrading from a version prior to 4.4.0, please ensure that you are using the latest version of the script.
Features
- Added an
overwriteflag toCustomData, used as theoverwriteparameter during tracking. CustomDatacan now be created using aname, in addition to the existing method of using anindex.