PHPackages                             healthengine/php-flagr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. healthengine/php-flagr

ActiveLibrary[API Development](/categories/api)

healthengine/php-flagr
======================

v2.0.0(3y ago)036.5k↓42%[1 issues](https://github.com/HealthEngineAU/php-flagr/issues)proprietaryPHPPHP ^7.4 || ^8.0

Since Apr 6Pushed 3y agoCompare

[ Source](https://github.com/HealthEngineAU/php-flagr)[ Packagist](https://packagist.org/packages/healthengine/php-flagr)[ Docs](http://swagger.io)[ RSS](/packages/healthengine-php-flagr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

Flagr API Client for PHP
========================

[](#flagr-api-client-for-php)

Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is `/api/v1`.

This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: `1.1.12`
- Build package: `io.swagger.codegen.v3.generators.php.PhpClientCodegen`

Requirements
------------

[](#requirements)

- PHP 7.4, 8.0, or 8.1.

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
composer require healthengine/php-flagr

```

Getting Started
---------------

[](#getting-started)

Please follow the [installation procedure](#installation--usage) and then run the following:

```

```

Documentation for API Endpoints
-------------------------------

[](#documentation-for-api-endpoints)

All URIs are relative to */api/v1*

ClassMethodHTTP requestDescription*ConstraintApi*[**createConstraint**](docs/Api/ConstraintApi.md#createconstraint)**POST** /flags/{flagID}/segments/{segmentID}/constraints*ConstraintApi*[**deleteConstraint**](docs/Api/ConstraintApi.md#deleteconstraint)**DELETE** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID}*ConstraintApi*[**findConstraints**](docs/Api/ConstraintApi.md#findconstraints)**GET** /flags/{flagID}/segments/{segmentID}/constraints*ConstraintApi*[**putConstraint**](docs/Api/ConstraintApi.md#putconstraint)**PUT** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID}*DistributionApi*[**findDistributions**](docs/Api/DistributionApi.md#finddistributions)**GET** /flags/{flagID}/segments/{segmentID}/distributions*DistributionApi*[**putDistributions**](docs/Api/DistributionApi.md#putdistributions)**PUT** /flags/{flagID}/segments/{segmentID}/distributions*EvaluationApi*[**postEvaluation**](docs/Api/EvaluationApi.md#postevaluation)**POST** /evaluation*EvaluationApi*[**postEvaluationBatch**](docs/Api/EvaluationApi.md#postevaluationbatch)**POST** /evaluation/batch*ExportApi*[**getExportEvalCacheJSON**](docs/Api/ExportApi.md#getexportevalcachejson)**GET** /export/eval\_cache/json*ExportApi*[**getExportSqlite**](docs/Api/ExportApi.md#getexportsqlite)**GET** /export/sqlite*FlagApi*[**createFlag**](docs/Api/FlagApi.md#createflag)**POST** /flags*FlagApi*[**deleteFlag**](docs/Api/FlagApi.md#deleteflag)**DELETE** /flags/{flagID}*FlagApi*[**findFlags**](docs/Api/FlagApi.md#findflags)**GET** /flags*FlagApi*[**getFlag**](docs/Api/FlagApi.md#getflag)**GET** /flags/{flagID}*FlagApi*[**getFlagEntityTypes**](docs/Api/FlagApi.md#getflagentitytypes)**GET** /flags/entity\_types*FlagApi*[**getFlagSnapshots**](docs/Api/FlagApi.md#getflagsnapshots)**GET** /flags/{flagID}/snapshots*FlagApi*[**putFlag**](docs/Api/FlagApi.md#putflag)**PUT** /flags/{flagID}*FlagApi*[**restoreFlag**](docs/Api/FlagApi.md#restoreflag)**PUT** /flags/{flagID}/restore*FlagApi*[**setFlagEnabled**](docs/Api/FlagApi.md#setflagenabled)**PUT** /flags/{flagID}/enabled*HealthApi*[**getHealth**](docs/Api/HealthApi.md#gethealth)**GET** /health*SegmentApi*[**createSegment**](docs/Api/SegmentApi.md#createsegment)**POST** /flags/{flagID}/segments*SegmentApi*[**deleteSegment**](docs/Api/SegmentApi.md#deletesegment)**DELETE** /flags/{flagID}/segments/{segmentID}*SegmentApi*[**findSegments**](docs/Api/SegmentApi.md#findsegments)**GET** /flags/{flagID}/segments*SegmentApi*[**putSegment**](docs/Api/SegmentApi.md#putsegment)**PUT** /flags/{flagID}/segments/{segmentID}*SegmentApi*[**putSegmentsReorder**](docs/Api/SegmentApi.md#putsegmentsreorder)**PUT** /flags/{flagID}/segments/reorder*TagApi*[**createTag**](docs/Api/TagApi.md#createtag)**POST** /flags/{flagID}/tags*TagApi*[**deleteTag**](docs/Api/TagApi.md#deletetag)**DELETE** /flags/{flagID}/tags/{tagID}*TagApi*[**findAllTags**](docs/Api/TagApi.md#findalltags)**GET** /tags*TagApi*[**findTags**](docs/Api/TagApi.md#findtags)**GET** /flags/{flagID}/tags*VariantApi*[**createVariant**](docs/Api/VariantApi.md#createvariant)**POST** /flags/{flagID}/variants*VariantApi*[**deleteVariant**](docs/Api/VariantApi.md#deletevariant)**DELETE** /flags/{flagID}/variants/{variantID}*VariantApi*[**findVariants**](docs/Api/VariantApi.md#findvariants)**GET** /flags/{flagID}/variants*VariantApi*[**putVariant**](docs/Api/VariantApi.md#putvariant)**PUT** /flags/{flagID}/variants/{variantID}Documentation For Models
------------------------

[](#documentation-for-models)

- [Constraint](docs/Model/Constraint.md)
- [CreateConstraintRequest](docs/Model/CreateConstraintRequest.md)
- [CreateFlagRequest](docs/Model/CreateFlagRequest.md)
- [CreateSegmentRequest](docs/Model/CreateSegmentRequest.md)
- [CreateTagRequest](docs/Model/CreateTagRequest.md)
- [CreateVariantRequest](docs/Model/CreateVariantRequest.md)
- [Distribution](docs/Model/Distribution.md)
- [Error](docs/Model/Error.md)
- [EvalContext](docs/Model/EvalContext.md)
- [EvalDebugLog](docs/Model/EvalDebugLog.md)
- [EvalResult](docs/Model/EvalResult.md)
- [EvaluationBatchRequest](docs/Model/EvaluationBatchRequest.md)
- [EvaluationBatchResponse](docs/Model/EvaluationBatchResponse.md)
- [EvaluationEntity](docs/Model/EvaluationEntity.md)
- [Flag](docs/Model/Flag.md)
- [FlagSnapshot](docs/Model/FlagSnapshot.md)
- [Health](docs/Model/Health.md)
- [PutDistributionsRequest](docs/Model/PutDistributionsRequest.md)
- [PutFlagRequest](docs/Model/PutFlagRequest.md)
- [PutSegmentReorderRequest](docs/Model/PutSegmentReorderRequest.md)
- [PutSegmentRequest](docs/Model/PutSegmentRequest.md)
- [PutVariantRequest](docs/Model/PutVariantRequest.md)
- [Segment](docs/Model/Segment.md)
- [SegmentDebugLog](docs/Model/SegmentDebugLog.md)
- [SetFlagEnabledRequest](docs/Model/SetFlagEnabledRequest.md)
- [Tag](docs/Model/Tag.md)
- [Variant](docs/Model/Variant.md)

Documentation For Authorization
-------------------------------

[](#documentation-for-authorization)

All endpoints do not require authorization.

Author
------

[](#author)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~202 days

Total

4

Last Release

1261d ago

Major Versions

1.1.13.1 → v2.0.02022-12-05

PHP version history (2 changes)1.1.12PHP &gt;=5.5

v2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6d54047748ac45bafb3af78039af88ec3569c5a5aa396737a32b8957ad66893?d=identicon)[tspencer244](/maintainers/tspencer244)

---

Top Contributors

[![joshkulesza](https://avatars.githubusercontent.com/u/1267049?v=4)](https://github.com/joshkulesza "joshkulesza (17 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (6 commits)")

---

Tags

phpapisdkswagger

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/healthengine-php-flagr/health.svg)

```
[![Health](https://phpackages.com/badges/healthengine-php-flagr/health.svg)](https://phpackages.com/packages/healthengine-php-flagr)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[clever/clever-php

231.6k](/packages/clever-clever-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
