Skip to content

Releases: configcat/php-sdk

v6.2.1

16 Nov 09:59
Compare
Choose a tag to compare

Fixed

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

v6.2.0

11 Nov 12:53
Compare
Choose a tag to compare

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

05 Aug 08:41
Compare
Choose a tag to compare
  • Contents of #22 (Improve testability of implementations using ConfigCatClient as a dependency)

v6.0.0

21 Mar 12:04
Compare
Choose a tag to compare

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

10 Mar 16:52
48dcf3f
Compare
Choose a tag to compare
  • Fix unserialize deprecation error. #19

v5.4.0

13 Jan 17:32
Compare
Choose a tag to compare

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

15 Jul 10:43
Compare
Choose a tag to compare

Update comments related to additional configuration options.

v5.3.0

09 Jul 08:53
Compare
Choose a tag to compare

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

v5.2.1

31 May 16:21
Compare
Choose a tag to compare

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

v5.2.0

22 Jan 12:32
Compare
Choose a tag to compare

Added two extra client configuration options for logging:

Name Type Example Description
log-level int 'log-level' => \ConfigCat\Log\LogLevel::DEBUG Sets the logging severity for the ConfigCat SDK. It must be a value from the constants of the \ConfigCat\Log\LogLevel class.
exceptions-to-ignore array 'exceptions-to-ignore' => [InvalidOperationException::class] A list of exception class types that should be excluded from logging.