Download the PHP package airship/flagger without Composer
On this page you can find all versions of the php package airship/flagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download airship/flagger
More information about airship/flagger
Files in airship/flagger
Package flagger
Short Description Flagger PHP SDK
License MIT
Homepage https://github.com/airshiphq/flagger-php
Informations about the package flagger
Flagger PHP
Requirement
PHP 7.1 or higher
Prerequisite
This SDK works with the Airship Microservice. Please refer to its documentation before proceeding.
Content
- 01 Installation
- 02 Key Concepts
- 03 Configuring Flags
- 04 Usage
01 Installation
php composer.phar require airship/flagger
02 Key Concepts
In Flagger, feature flags control traffic to generic objects (called entities). The most common type for entities is User
, but they can also be other things (i.e. Page
, Group
, Team
, App
, etc.). By default, all entities have the type User
.
Entities can be represented by dicitionaries or by using the Entity
class.
03 Configuring Flags
To configure Flagger, we would need to pass a new Client instance.
04 Usage
Attributes (for complex targeting)
Group (for membership-like cascading behavior)
Contributing
Dependencies are managed using Composer and the following documentation assumes that
composer
is installed on the your executable path.
Code Style
PSR-2 code style is enforced. Check the code style with composer check-style
and fix it with composer fix-style
.
Running Tests
Tests are run through PhpUnit
License
MIT