Download the PHP package harness/ff-server-sdk without Composer

On this page you can find all versions of the php package harness/ff-server-sdk. 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 ff-server-sdk

PHP SDK for Harness Feature Flags

========================

Table of Contents

Intro
Requirements
Quickstart
Further Reading
Development

Intro

Use this README to get started with our Feature Flags (FF) SDK for PHP. This guide outlines the basics of getting started with the SDK and provides a full code sample for you to try out. This sample doesn’t include configuration options, for in depth steps and configuring the SDK, for example, disabling streaming or using our Relay Proxy, see the PHP SDK Reference.

FeatureFlags

Requirements

To use this SDK, make sure you’ve:

Quickstart

To follow along with our test code sample, make sure you’ve:

Install the SDK Dependency

The first step is to install the SDK as a dependency in your application using Composer.

Code Sample

The following is a complete code example that you can use to test the harnessappdemodarkmode Flag you created on the Harness Platform. When you run the code it will:

The example below can also be found in online_example.php.

Running the example with docker

This project contains the resources to quickly run this code example with Docker. To do this, you will need:

First set up the environment configuration for both the FF Relay Proxy and the SDK.

Copy the .online.example.env to .online.env.

Then edit .online.env and add the following values from your Harness configuration.

For More information on how to get the values for these fields, refer to: Relay Proxy Configuration Feature Flags SDK Keys

Once these are configured, start the docker containers with:

Once the docker containers are running, open the URL in a browser window to view the Feature Flag value.

Additional Reading

Further examples and config options are in the further reading section:

Further Reading


Harness is a feature management platform that helps teams to build better software and to test features quicker.



All versions of ff-server-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
harness/ff-php-client-api Version *@dev
cache/filesystem-adapter Version ^1.2
monolog/monolog Version 2.6.0
psr/log Version 1.1.4
psr/cache Version 1.0.1
symfony/deprecation-contracts Version 2.2
gmponos/guzzle_logger Version ^2.2
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 harness/ff-server-sdk contains the following files

Loading the files please wait ....