Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Toggle Laravel Package

mrshanebarron/toggle

mrshanebarron/toggle is a lightweight Laravel/PHP package for adding simple toggle behavior to your app—switch features, settings, or states on and off with minimal setup. Useful for lightweight feature flags and runtime controls.

View on GitHub
Deep Wiki
Context7

mrshanebarron/toggle is a lightweight Laravel package for managing feature toggles and runtime flags. It offers a simple API to enable, disable, and check toggles, helping you ship code safely and control behavior without redeploying.

  • Define toggles with sensible defaults
  • Check toggle state anywhere in your app
  • Enable or disable features at runtime
  • Framework-native Laravel integration
  • Minimal setup with a clean, expressive API
Frequently asked questions about Toggle
What is mrshanebarron/toggle used for in Laravel?
mrshanebarron/toggle is described as a Laravel UI component package for adding toggle functionality to an application. It provides a lightweight way to define and manage toggles for enabling or disabling features and behavior. It is intended for use cases such as feature flags and simple on/off switches.
How do I install mrshanebarron/toggle with Composer?
You can install the package with Composer using composer require mrshanebarron/toggle. After installation, check the package README for any Laravel service provider or configuration steps. The provided overview does not list additional setup requirements.
Does mrshanebarron/toggle support feature flags in Laravel?
Yes, the package is described as useful for feature flags and simple on/off switches. It lets you define and manage toggles so you can enable or disable features and behavior with minimal setup. The exact flag storage and resolution behavior should be confirmed in the README.
How do I define a toggle in my Laravel application with this package?
The overview says the package provides a lightweight way to define and manage toggles, but the README excerpt provided here is empty. The exact definition API is therefore not specified in the available context. Refer to the package README and source code for the supported toggle definition patterns.
Can I use mrshanebarron/toggle for simple on/off switches in Blade?
The package is described as a Laravel UI component package for toggle functionality, which suggests it may be used for UI-level on/off controls. However, the provided context does not confirm specific Blade directives or component syntax. Check the README for the supported UI and rendering usage.
Which Laravel versions are supported by mrshanebarron/toggle?
The provided overview does not state supported Laravel versions. Check the package README and composer.json for Laravel framework version constraints before installing. Confirm compatibility with your application's Laravel version before adopting it.
Is mrshanebarron/toggle suitable for production feature flags?
It can be used for simple on/off toggles, but the overview does not detail persistence, caching, access control, or auditing. For production feature flags, review the package source and README for how toggle state is stored and secured. Consider a more feature-complete flag system if you need gradual rollouts or audit trails.
How do I test toggles in Laravel when using mrshanebarron/toggle?
The provided context does not describe package-specific testing helpers or assertions. You can test your own toggle-dependent behavior with Laravel's standard testing tools once you know how the package exposes toggle state. Check the README for any recommended test utilities or examples.
What are alternatives to mrshanebarron/toggle for Laravel feature flags?
Laravel developers often evaluate options such as Laravel Pennant and third-party feature flag services. mrshanebarron/toggle is positioned as a lightweight Laravel UI component for simple toggles. Choose based on whether you need basic on/off switches or advanced rollout, analytics, and management features.
How is mrshanebarron/toggle maintained and updated?
The provided overview does not include release history or maintenance details. Review the GitHub repository for recent commits, issues, and tagged releases before adopting the package. Also check composer.json for Laravel version support and dependency constraints.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core