spatie/laravel-valuestore
Store and retrieve loose key/value data in a JSON file with a simple API. Supports put/get with defaults, has/all, forget/flush, increment, and helpers like ArrayAccess and Countable—handy for app settings or small persistent state.
put('new_ui_enabled', true)).put('last_updated', now()))..env-like behavior but for arbitrary values).For Executives: "This package lets us store simple app settings (like feature toggles or configs) in a file instead of a database, cutting development time by 80% for non-critical data. It’s secure (MIT-licensed, maintained by Spatie), lightweight, and avoids over-engineering. Ideal for quick iterations on things like A/B tests or environment-specific overrides—think of it as a ‘.env for arbitrary data.’"
For Engineering:
*"Spatie’s valuestore gives us a dead-simple way to persist key-value pairs to a JSON file with Laravel’s familiar syntax. Perfect for:
new_payment_flow without migrations..env sprawl.last_backup_time.
It’s thread-safe for single-file use, supports bulk ops, and integrates seamlessly with Laravel’s service container. Tradeoff: Not for high-scale or sensitive data—use Redis/database for those cases."*How can I help you explore Laravel packages today?