sustainable-hustle/astrel-laravel
Astrel Laravel provides a simple, framework-native integration for bringing Astrel into Laravel applications. It offers config publishing, service provider wiring, and sensible defaults to help you get up and running quickly while keeping your code clean and maintainable.
astrel_env() lets teams define named values (slugs) resolved from environment variables with sensible defaults, enabling PMs to ship features that behave differently across staging, production, or customer tiers without redeploying code.astrel() helper can serve as a lightweight registry for toggles and values (e.g., astrel('checkout-v2', env('CHECKOUT_V2', false))), supporting experiments and phased releases.env() calls into a single, testable abstraction, improving maintainability and reducing the risk of inconsistent defaults across the codebase.Adopt when:
astrel_env('my-slug') removes boilerplate compared to astrel('my-slug', env('MY_SLUG')).astrel() and want a cleaner path for env-backed values.Look elsewhere when:
For executives: This package is a small, low-risk developer productivity tool. The new astrel_env() helper reduces boilerplate for environment-driven configuration, making it faster and safer to roll out environment-specific features and defaults. It supports lightweight feature flagging without adding a paid third-party service, keeping costs down for simple use cases. Adoption is incremental and does not require architectural changes.
For engineering: astrel_env() is a thin convenience wrapper around astrel() that automatically maps a slug to an uppercase environment variable (dashes to underscores) and supports a default value. It removes repetitive env() calls, centralizes naming conventions, and improves testability. No breaking changes in v1.0.2; the API is additive. Recommend adopting for small config/flag needs, while flagging that the package is early-stage (v1.0.x) and should be evaluated for long-term maintenance before broad rollout.
How can I help you explore Laravel packages today?