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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package taplytics-php

CircleCI

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

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
mashape/unirest-php Version ~3.0.1
apimatic/jsonmapper Version ~1.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package taplytics/taplytics-php contains the following files

Loading the files please wait ....