PHPackages                             moonspot/phlag - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. moonspot/phlag

ActiveProject[Utility &amp; Helpers](/categories/utility)

moonspot/phlag
==============

Service providing feature flags

1.3.2(1mo ago)51[2 PRs](https://github.com/brianlmoon/phlag/pulls)BSD-3-ClausePHPPHP ^8.4CI passing

Since Nov 22Pushed 1mo agoCompare

[ Source](https://github.com/brianlmoon/phlag)[ Packagist](https://packagist.org/packages/moonspot/phlag)[ RSS](/packages/moonspot-phlag/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (35)Used By (0)

Phlag
=====

[](#phlag)

**Feature flag management system with RESTful API and web admin interface**

Phlag lets you control feature rollouts and configuration values across your applications with temporal scheduling and type-safe values. Built with PHP 8.4+, it provides both a web UI for management and APIs for flag consumption.

Features
--------

[](#features)

- 🎯 **Typed Flags**: SWITCH (boolean), INTEGER, FLOAT, STRING (supports multi-line text like YAML), JSON (parsed objects/arrays)
- ⏰ **Temporal Control**: Schedule flags with start/end dates
- 🌐 **Web Interface**: Clean admin UI for managing flags, API keys, and users
- 🔑 **Auto-generated API Keys**: 64-character cryptographically secure keys
- 🪝 **Webhooks**: HTTP notifications when flags change with customizable payloads
- 📧 **Password Reset**: Email-based password recovery
- 🔐 **Google OAuth**: Optional Google sign-in for user authentication
- 🗄️ **Multi-Database**: MySQL, PostgreSQL, SQLite support
- 📦 **Client Libraries**: Official JavaScript and PHP clients available

Quick Start
-----------

[](#quick-start)

### Requirements

[](#requirements)

- PHP 8.4 or higher
- Composer
- One of: MySQL 5.7+, PostgreSQL 9.6+, or SQLite 3
- Web server (Apache, Nginx, or PHP built-in server)
- (Optional) SMTP server for password reset emails

### Installation

[](#installation)

1. **Install via Composer**

```
composer create-project moonspot/phlag
cd phlag
```

2. **Set up the database**

Choose your database and run the appropriate schema:

```
# MySQL
mysql -u root -p your_database
