arindam/blade-variable
Declare and use variables directly in Laravel Blade templates with a simple @var directive. Install via Composer (supports auto-discovery; provider available if needed) and set values like @var('name','Arindam') to access as $name in views.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us tweak UI elements—like headlines, colors, or CTAs—directly in templates without deploying backend code. For example, the marketing team could update a landing page’s hero text in minutes, while developers focus on core features. It’s a lightweight, cost-effective way to accelerate UI customization, especially for marketing sites or admin tools. Since it’s MIT-licensed and Laravel-native, it integrates seamlessly with our stack with minimal risk."
For Engineering: *"This solves a common pain point: managing UI variables that change frequently (e.g., feature flags, A/B tests). Instead of cluttering controllers or using global config files, we can define variables in Blade templates—cleaner separation of concerns. It’s ideal for:
How can I help you explore Laravel packages today?