Skip to content

Releases: configcat/php-sdk

v7.0.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 15 Mar 01:31
146a236
  • Changed the minimum required PHP version to 8.1. Support for PHP 7 is still maintained here.
  • Deprecated getVariationId() and getAllVariationIds() methods in favor of getValueDetails() and getAllValueDetails().

v6.2.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 16 Nov 09:59

Fixed

  • LogLevel::NO_LOG cannot be used (#27)

v6.2.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 11 Nov 12:53

Added

  • setDefaultUser(user) / clearDefaultUser() methods to set / remove a default user object used when there's no user passed to getValue() / getValueDetails() / getAllValues() / getAllVariationIds() methods.
  • setOffline() / setOnline() methods to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode the SDK works from the cache only.
  • onConfigChanged([String => Setting]) / onFlagEvaluated(EvaluationDetails) / onError(String) hooks. Subscription is possible on the hooks() property of ConfigCatClient.
  • getValueDetails() method to retrieve evaluation details along with the feature flag / setting value. It returns the same details that is passed to onFlagEvaluated(EvaluationDetails) on each evaluation.
  • forceRefresh() method returns with a result object to indicate whether the refresh succeeded or not.

Changed

  • ArrayCache has a global static array now that caches the entries between each ConfigCatClient instance. The only differentiator is the sdkKey, so each client instance with the same sdkKey will use the same cache entry.

v6.1.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 05 Aug 08:41
  • Contents of #22 (Improve testability of implementations using ConfigCatClient as a dependency)

v6.0.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 21 Mar 12:04

Changed

  • Increased the minimum required PHP version to 7.1

Breaking changes

  • Added the appropriate type hints to publicly available methods:
     // Cache:
     abstract protected function get(string $key); -> abstract protected function get(string $key): ?string;
     abstract protected function get(string $key); -> abstract protected function set(string $key, string $value): void;
       
     // ConfigCatClient:
     function getValue($key, $defaultValue, User $user = null) -> function getValue(string $key, $defaultValue, User $user = null)
     function getVariationId($key, $defaultVariationId, User $user = null) -> function getVariationId(string $key, $defaultVariationId, User $user = null)
     function getAllVariationIds(User $user = null) -> function getAllVariationIds(User $user = null): array
     function getKeyAndValue($variationId) -> function getKeyAndValue(string $variationId): ?Pair
     function getAllKeys() -> function getAllKeys(): array
     function getAllValues(User $user = null) -> function getAllValues(User $user = null): array
     function forceRefresh() -> function forceRefresh(): void

v5.4.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 10 Mar 16:52
48dcf3f
  • Fix unserialize deprecation error. #19

v5.4.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 13 Jan 17:32

Fixed

  • The evaluation logs are staying on info level but they are now combined into a single log entry.
  • Set the default log level to WARNING.

Added

  • An additional NO_LOG log level was added to turn off the logging.
  • New flag-overrides configuration option was added to support the reading of flags & settings from a local file or an associative array.
  • New getAllValues() function was added for evaluating all available flags.

v5.3.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 15 Jul 10:43

Update comments related to additional configuration options.

v5.3.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 09 Jul 08:53

Fix wrong request option parameter handling for guzzle: connect-timeout ➡️ connect_timeout.

v5.2.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 31 May 16:21

Fixed wrong error message reported when the config.json download failed and simultaneously the cache was also empty. #13