Getting Started with FeatureFlags

FeatureFlags is a Laravel-native feature flag service that gives you the power of enterprise feature management without the complexity or cost. Evaluate flags locally with zero latency, while managing everything through a beautiful dashboard.

Why FeatureFlags?

  • Local evaluation - Flags are cached and evaluated in your app, not via API calls. Zero latency impact.
  • Laravel-native - Built specifically for Laravel with a familiar Facade-based API.
  • Powerful targeting - Target users by any attribute with flexible rules and percentage rollouts.
  • Real-time updates - Changes sync instantly via webhooks or short-interval polling.
  • Affordable - 3-5x cheaper than LaunchDarkly for the features you actually need.

Quick Start

Get up and running in under 5 minutes:

1. Create an account

Sign up for free and create your first project. You'll get an API key for each environment (production, staging, local).

2. Install the package

composer require featureflags/laravel

3. Configure your API key

# .env
FEATURE_FLAGS_API_KEY=your-environment-api-key

4. Start using flags

use FeatureFlags\Facades\Feature;

if (Feature::enabled('new-checkout')) {
    // Show new checkout experience
}

// With context for targeting
if (Feature::for($user)->enabled('beta-features')) {
    // Show beta features to this user
}

How It Works

Configure in Dashboard

Create flags, set up targeting rules, and manage rollouts through our intuitive dashboard.

Sync to Your App

The package syncs flag configurations automatically and caches them locally.

Evaluate Locally

Flags are evaluated locally in your app with zero network latency per check.

Next Steps