Search by

hypervel / pennant

albertchtbinaryfire

A simple, lightweight library for managing feature flags in Hypervel.

Package info

github.com/hypervel/pennant

Issues

pkg:composer/hypervel/pennant

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.4.x-dev 2026-10-24 05:36 UTC

This package is auto-updated.

Last update: 2026-10-27 07:31:10 UTC


README

Ask DeepWiki

Documentation: https://hypervel.org/docs/pennant

Differences From Laravel

Eloquent models without a key can't be used as feature scopes. Laravel stores every unsaved model under the same scope identifier, so they all share one stored value. Hypervel throws a RuntimeException instead; save the model first or pass an explicit scope identifier.

Stores read their pennant.stores configuration once, when they're first resolved, while Laravel's database store rereads its connection and table on every query. Config is shared by every request in a Hypervel worker, so change it only during boot or in tests, then call Feature::forgetDrivers() and define your features again. See the configuration documentation for per-request connections and partitioning.

The built-in drivers and the store decorator take different constructor arguments than Laravel's, and some of their protected methods differ, because feature values live in coroutine state and stores can be partitioned. Subclasses of ArrayDriver, DatabaseDriver, Decorator or FeatureManager that override them need updating; custom drivers that implement the Driver contract are unaffected.

Ported from: https://github.com/laravel/pennant