Skip to content

Releases: Kameleoon-new/client-php

PHP SDK 4.24.1

Choose a tag to compare

@Kameleoon-SDK Kameleoon-SDK released this 11 Sep 10:15

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

Choose a tag to compare

@Kameleoon-SDK Kameleoon-SDK released this 27 Aug 10:32

Features

  • Added new setEventHandler method for subscribing to SDK events:
    • EventType::DATAFILE_UPDATE notifies when the SDK data file (configuration) is updated; handled with DataFileUpdateHandler.
    • EventType::HTTP_REQUEST notifies when SDK HTTP requests complete successfully or fail; handled with HttpRequestHandler. 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 null to setEventHandler clears the handler for the selected event type.
  • Added the new waitInit method, 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 an Initialization exception (with the failure available via getPrevious()) 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 isReady method, which returns true once the SDK configuration has been successfully downloaded and a valid local copy is available (even if it has become outdated), and false otherwise. Unlike waitInit, it returns immediately without making network requests or throwing.
  • Targeting conditions of an unknown (unsupported) type are now evaluated as false instead of true, so visitors are no longer targeted by conditions the SDK cannot evaluate.

PHP SDK 4.23.0

Choose a tag to compare

@Kameleoon-SDK Kameleoon-SDK released this 20 May 09:07

Features

  • Added new requestBodySizeLimitBytes (request_body_size_limit_bytes) configuration parameter to control the request body file size limit.

PHP SDK 4.22.0

Choose a tag to compare

@Kameleoon-SDK Kameleoon-SDK released this 05 May 09:47

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

Choose a tag to compare

@Kameleoon Kameleoon released this 13 Feb 11:35

Features

  • Introduced support for the Kameleoon ApplicationVersion data type, allowing the visitor’s application version to be set and used in targeting evaluation.

PHP SDK 4.19.0

Choose a tag to compare

@Kameleoon Kameleoon released this 29 Jan 14:41

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 track parameter for addData. When set to false, 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 is true. This behavior is consistent with the track parameter used in evaluation methods such as getVariation.

PHP SDK 4.18.0

Choose a tag to compare

@Kameleoon Kameleoon released this 24 Dec 13:11

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 getDataFile method. 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, use getVariations instead. getDataFile is 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

Choose a tag to compare

@Kameleoon Kameleoon released this 21 Nov 11:54

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

Choose a tag to compare

@Kameleoon Kameleoon released this 31 Oct 12:19

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

Choose a tag to compare

@Kameleoon Kameleoon released this 29 Aug 13:34

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 overwrite flag to CustomData, used as the overwrite parameter during tracking.
  • CustomData can now be created using a name, in addition to the existing method of using an index.