Welcome to the Flagship PHP SDK documentation!

The following article will guide you through the steps to get Flagship up and running on your PHP scripts using our library with preconfigured methods to implement the Decision API.

Wants to have a look at the GitHub repo? Link here.

Feel free to contact us if you have any questions regarding this documentation.

Release notes

Improved

  • Usage data collection process

Added

  • Collecting developer usage tracking data:
    • Troubleshooting data collection can now be enabled with your agreement by Flagship services in the SDK for debugging purposes.
    • Usage data collection is now enabled in the SDK, which will help us improve our product.
  • setDisableDeveloperUsageTracking accessor in FlagshipConfig class

Added

  • getCampaignName, getVariationGroupName and getVariationName in Flag metadata

Added

  • setFetchThirdPartyData accessor in FlagshipConfig class
  • Warning logs in case of an outdated flag

Fixed

  • log error when setTimeout value is correct

Added

  • qt field in activate batch. It represents the time delta (in milliseconds) between when the hit reported occurred and the time it was sent.

Added

Changed

Deprecated

  • flag.userExposure method

Added

  • visitor_consent key in the body of the campaign request

Removed

  • sendContextEvent query param from the campaign request

Changed

  • Event hit accessor setValue can now only accept an integer and must not be a negative value

Added

  • bucketingUrl property accessors in Flagship\Config\BucketingConfig
  • slug property accessors in Flagship\Flag\FlagMetadata
  • Managing visitor cache

Changed

  • Bucketing mode
  • BucketingConfig constructor signature
  • FlagshipConfig::bucketing signature

Removed

  • bucketingDirectoryPath property accessors from Flagship\Config\BucketingConfig

Improved

  • Hits are now sent in the background

Added

  • fetchFlags method in Visitor instance
  • getFlag method in Visitor instance
  • Flagship\Flag\FlagMetadata class
  • Flagship\Flag\Flag class

Deprecated

  • synchronizeModification method
  • getModification method
  • getModificationInfo method
  • activateModification method

Added

  • Bucketing mode.
  • SDK Status / Status changed callback.
  • Experience Continuity : visitor authentication / unauthentication.
  • Visitor consent.
  • Predefined context.

Changed

  • FlagshipConfig implemented by Flagship\Config\DecisionApiConfig or Flagship\Config\BucketingConfig
  • Visitor namespace
  • Flagship::newVisitor is now a fluent interface builder.


What’s Next