Download the PHP package azaharizaman/nexus-feature-flags without Composer

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

Nexus\FeatureFlags

Latest Version Total Downloads

Production-grade feature flag management with context-based evaluation, percentage rollout, tenant inheritance, and kill switches. Framework-agnostic pure PHP 8.3+ package designed for Laravel, Symfony, Slim, and vanilla PHP applications.

Features

Installation

For Laravel

The service provider will be auto-discovered. Publish the migration:

For Symfony

Register services in config/services.yaml:

For Vanilla PHP

Quick Start

Basic Usage

Context-Based Evaluation

Bulk Evaluation (Prevents N+1 Queries)

Flag Strategies

1. System-Wide

Enabled/disabled for all users globally.

2. Percentage Rollout

Gradually roll out to a percentage of users based on stable identifier.

3. Tenant List

Enabled only for specific tenants.

4. User List

Enabled only for specific users.

5. Custom Evaluator (Advanced)

Use custom business logic for complex targeting.

Override Precedence (Kill Switches)

Force flags ON or OFF regardless of strategy for emergency control.

Tenant Inheritance

Tenant-specific flags automatically override global defaults.

Name Validation

Flag names must follow strict pattern for consistency and safety:

Testing

Framework Integration Examples

Laravel Setup

After installation, the FeatureFlagServiceProvider auto-registers. Configure in config/feature-flags.php:

API Usage:

Blade Directives (Optional Custom Helper):

Symfony Setup

services.yaml:

Controller Usage:

Twig Extension (Optional):

Slim Framework Setup

Standalone PHP Setup

Compliance & Audit Trail

For regulatory compliance (SOX, GDPR, etc.), the package provides optional audit interfaces that enable complete change tracking and historical state queries.

Audit Architecture

FlagAuditChangeInterface (Write Audit)

Records all feature flag modifications using Nexus\AuditLogger:

FlagAuditQueryInterface (Read Audit)

Query historical flag states using Nexus\EventStream for compliance audits:

Using AuditableFlagRepository

The AuditableFlagRepository decorator automatically records all changes:

Audit Actions

The AuditAction enum tracks all possible flag modifications:

Action Description Critical
CREATED Flag was created No
UPDATED Flag was updated (generic) No
DELETED Flag was deleted Yes
ENABLED_CHANGED Flag enabled state toggled No
STRATEGY_CHANGED Evaluation strategy changed No
OVERRIDE_CHANGED Override state changed Yes
FORCE_ENABLED FORCE_ON override applied Yes
FORCE_DISABLED FORCE_OFF override (kill switch) Yes
OVERRIDE_CLEARED Override removed No
ROLLOUT_CHANGED Percentage rollout changed No
TARGET_LIST_CHANGED Tenant/user list changed No

Checking Audit Availability

Laravel Service Provider Setup

Requirements

๐Ÿ“– Documentation

Core Documentation

Implementation Details

Code Examples

Quick Links

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

License

The MIT License (MIT). Please see License File for more information.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits


All versions of nexus-feature-flags with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^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 azaharizaman/nexus-feature-flags contains the following files

Loading the files please wait ...