Releases: optimizely/php-sdk
v4.0.1
What's Changed
- [FSSDK-9022] Dev Containers and bug bash by @Mat001 in #269
- [FSSDK-9553] Add GitHub Issues templates by @mikechu-optimizely in #278
- [FSSDK-9573] Fix: Deprecation warning by @mikechu-optimizely in #279
- [FSSDK-9784] Return Latest Experiment When Duplicate Keys in Config by @mikechu-optimizely in #280
- [FSSDK-9630] Fix: Code examples by @localheinz in #281
Full Changelog: 4.0.0...4.0.1
Release 4.0.0
4.0.0
June 12, 2023
- Provided support for PHP version 8.x.
- Version 4.0.0 requires PHP8+.
- Version 3 requires PHP5.5+ up to PHP7.
Release 3.9.4
3.9.4
March 29 , 2023
- We have made changes to avoid unnecessary deprecation notices and fixed some incorrect return hints. (#265).
Release 3.9.3
March 13, 2023
- We updated our README.md and other non-functional code to reflect that this SDK supports both Optimizely Feature Experimentation and Optimizely Full Stack. (#261).
Release 3.9.2
3.9.2
October 5th, 2022
Bug Fixes
- String type casting added to avoid deprecation notices when passing null to strlen. (#253)
Release 3.9.1
3.9.1
May 31st, 2022
Bug Fixes
-
Since php 8.1 internal functions are using proper return types. This results in deprecation notices for some of the methods. To suppress the notice for php8.1+ the new ReturnTypeWillChange attribute is added to the method in question. (#242)
-
In HTTPProjectConfigManager fetchDatafile function datafile should be a string. So it is fixed by using ->getContents() which returns string. (#243, #247)
-
Return type should be
ProjectConfigInterface
when callingcreateProjectConfigFromDatafile
method. (#249)
Release 3.9.0
3.9.0
January 10th, 2022
New Features
- Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the OptimizelyUserContext interface (#233, #236, #237, #238)
- setForcedDecision
- getForcedDecision
- removeForcedDecision
- removeAllForcedDecisions
- For details, refer to our documentation pages: OptimizelyUserContext and Forced Decision methods.
Enhancements
- Updated SDK to support latest versions of PHP and Laravel by removing major version restrictions for
monolog/monolog
andguzzlehttp/guzzle
(#235).
Release 3.8.0
3.8.0
September 16th, 2021
New Features:
- Add new public properties to
OptimizelyConfig
. (#230)- sdkKey
- environmentKey
- attributes
- audiences
- events
- experimentRules and deliveryRules to
OptimizelyFeature
- audiences to
OptimizelyExperiment
- For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/optimizelyconfig-php.
Deprecated:
OptimizelyFeature.experimentsMap
ofOptimizelyConfig
is deprecated as of this release. Please useOptimizelyFeature.experimentRules
andOptimizelyFeature.deliveryRules
. (#230)
Release 3.7.1
3.7.1
August 4th, 2021
Bug Fixes
- Fixed duplicate experiment key issue with multiple feature flags. While trying to get variation from the variationKeyMap, it was unable to find because the latest experiment key was overriding the previous one. #226
Release 3.7.0
3.7.0
February 17th, 2021
New Features:
-
Introducing a new primary interface for retrieving feature flag status, configuration and associated experiment decisions for users (#220, #224). The new
OptimizelyUserContext
class is instantiated withcreateUserContext
and exposes the following APIs to getOptimizelyDecision
:- setAttribute
- decide
- decideAll
- decideForKeys
- trackEvent
-
For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/php-sdk.