Download the PHP package taplytics/taplytics-php without Composer
On this page you can find all versions of the php package taplytics/taplytics-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download taplytics/taplytics-php
More information about taplytics/taplytics-php
Files in taplytics/taplytics-php
Package taplytics-php
Short Description Taplytics PHP SDK for fast A/B testing and Feature Flagging
License http://taplytics.com/license
Homepage http://decisions-docs.taplytics.com
Informations about the package taplytics-php
Getting started
Taplytics PHP SDK enables the delivery of server-side experiments, feature flags and functionality at edge.
How to Build
Refer to Getting Started to build Taplytics into your project.
Initialization
API client can be initialized as following.
Class Reference
APIController
Get singleton instance
The singleton instance of the class can be accessed from the API Client.
createGetVariables
All variables and their values for the given user
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
body | All relevant attributes associated with the user |
Example Usage
createGetVariationForExperiment
For a given experiment, determine whether or not a user is in the experiment, and in which variation
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
experimentName | Name of an Experiment | |
body | All relevant attributes associated with the user |
Example Usage
createGetVariableValue
Value for given Taplytics Dynamic Variable. If a user is not in an experiment containing the variable, the response be the provided default value in the query params.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
varName | name of variable | |
defaultValue | default value to be used if user does not have variable available. | |
body | All relevant attributes associated with the user |
Example Usage
createGetBucketing
Returns a key/value pairing of all experiments that the user has been segmented into, as well as the variation the users are assigned.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for current user | |
body | Provide all relevant attributes associated with the user |
Example Usage
postEvent
Send an event to Taplytics. These events are then used to compare against an experiment's goals to determine the success of an A/B test.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
body | Provide an array of events, as well as all additional relevant user attributes. |
Example Usage
The format for passing in events is as follows:
createGetConfig
Returns the entire configuration for the project. This is the document that informs the experiment information such as segmentation. Extremely verbose and should be used for debugging.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
body | All relevant attributes associated with the user |
Example Usage
createGetFeatureFlags
Returns the list of feature flags with names and key names.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
body | All relevant attributes associated with the user |
Example Usage
isFeatureFlagEnabled
Returns true or false based on if the keyName passed in is an enabled feature flag.
Parameters
Parameter | Tags | Description |
---|---|---|
token | SDK token for the project | |
userId | ID for given user | |
keyName | key name for the feature flag | |
body | All relevant attributes associated with the user |
Example Usage
All versions of taplytics-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
mashape/unirest-php Version ~3.0.1
apimatic/jsonmapper Version ~1.3.0