feature-flags-php

Official

Add PostHog feature flags to PHP apps.

AuthorPostHog
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This PHP skill streamlines implementing PostHog feature flags in PHP apps, reducing risk of hard-coded keys and improving flag-driven behavior.

Core Features & Use Cases

  • Integrates PostHog feature flags in PHP applications with PHP SDK calls like isFeatureEnabled and getFeatureFlag.
  • Demonstrates how to enable sending flag data in events and how to override properties for accurate evaluations across environments.
  • Use case: add a boolean flag to toggle a beta feature behind authentication, or switch variants for A/B tests on server-side logic.

Quick Start

Initialize the PHP client with your PostHog project token and evaluate a flag for a user to drive conditional logic.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: feature-flags-php
Download link: https://github.com/PostHog/skills/archive/main.zip#feature-flags-php

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.