Search by

diegosurita / pennant-ui

diegosurita

A user-friendly UI for Laravel Pennant package.

Package info

github.com/diegosurita/pennant-ui

pkg:composer/diegosurita/pennant-ui

Fund package maintenance!

diegosurita

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-09-21 19:46 UTC

This package is auto-updated.

Last update: 2026-09-21 19:55:44 UTC


README

Pennant UI

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Total Downloads

A user-friendly UI for Laravel Pennant package.

Installation

You can install the package via Composer:

composer require diegosurita/pennant-ui

Publish Laravel Pennant's configuration and features table migration, then migrate:

php artisan vendor:publish --provider="Laravel\Pennant\PennantServiceProvider"
php artisan migrate

You may publish all of this package's resources at once:

php artisan vendor:publish --tag="pennant-ui"

Or, you may publish each resource individually:

Publishing the Configuration File

php artisan vendor:publish --tag="pennant-ui-config"

Publishing the Views

php artisan vendor:publish --tag="pennant-ui-views"

Publishing the Translations

php artisan vendor:publish --tag="pennant-ui-lang"

Publishing the Public Assets

php artisan vendor:publish --tag="pennant-ui-assets"

Usage

Visit /pennant in your application. The panel lists defined Pennant features in a table so you can see each flag's scope, toggle boolean flags, choose a rich value from the strings in that flag's PHP definition, reset a single flag to its definition, or purge every stored flag after confirming. Updates apply to the global scope and to every stored scope (activateForEveryone / deactivateForEveryone).

The browser will prompt for HTTP Basic Authentication in production. Set the credentials in your environment:

PENNANT_UI_USERNAME=your-username
PENNANT_UI_PASSWORD=your-password

The route stays locked in production until both environment variables are set. You may also publish the configuration file and override pennant-ui.username and pennant-ui.password directly.

Class-based features are registered the first time they are checked. Call Feature::discover() in a service provider so they appear in the panel:

use Laravel\Pennant\Feature;

public function boot(): void
{
    Feature::discover();
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Thank you for considering contributing to Pennant UI! Please review our contributing guide to get started.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Pennant UI is open-sourced software licensed under the MIT license.