Download the PHP package signakit/flags-php without Composer

On this page you can find all versions of the php package signakit/flags-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 flags-php

signakit/flags-php

Official PHP 8.1+ SDK for SignaKit Feature Flags.

Installation

Guzzle is recommended but optional — the SDK falls back to cURL automatically:

Quick Start

Plain PHP

Laravel

WordPress

API Reference

SignaKitClient

Method Description
initialize(): void Fetch config from CDN. Retries 3× with exponential back-off. Throws on failure.
onReady(): void Alias for initialize().
createUserContext(string $userId, array $attributes = []): SignaKitUserContext Create an evaluation context for a user.
refreshConfig(): void Re-fetch config (ETag-aware). Call periodically to pick up flag changes.

SignaKitUserContext

Method Description
decide(string $flagKey): ?Decision Evaluate a single flag. Returns null if the flag does not exist or is archived.
decideAll(): array<string, Decision> Evaluate every active flag. Returns a map of flagKey → Decision.
trackEvent(string $eventKey, ?float $value = null): void Fire a conversion event.

Decision

Custom HTTP Client

Implement HttpClientInterface to plug in your own transport:

How It Works

  1. Config delivery — On initialize() the SDK fetches a JSON config from CloudFront (d30l2rkped5b4m.cloudfront.net). The config contains all flag definitions, rules, and allocation ranges. Subsequent calls send an If-None-Match ETag header so unchanged configs are never re-downloaded.

  2. Local evaluation — All decide() calls run entirely in memory, with no network round-trip. The two-stage MurmurHash3 bucketing algorithm guarantees deterministic, consistent assignments: the same user always gets the same variation for a given flag configuration.

  3. Event trackingtrackEvent() and internal $exposure events are POSTed to an API Gateway endpoint asynchronously. Failures are logged with error_log() and never throw.

SDK Key Format

Requirements

License

MIT


All versions of flags-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 signakit/flags-php contains the following files

Loading the files please wait ...