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

Settings Laravel Package

phakpoom/settings

A lightweight Laravel package for managing persistent application settings. Store and retrieve key-value configuration from the database, update values at runtime, and cache settings for fast, consistent access across your app. Useful for admin-editable options and site preferences.

View on GitHub
Deep Wiki
Context7

phakpoom/settings is a lightweight Laravel package for managing persistent application settings through a clean, developer-friendly API. It lets you store configuration values in the database and retrieve them anywhere in your app, making runtime preferences easier to manage than hard-coded config files.

  • Database-backed settings with simple get/set helpers
  • Caching support to reduce repeated database queries
  • Typed values for strings, numbers, booleans, and arrays
  • Laravel integration via service provider, facade, and config
  • Flexible defaults for missing or optional settings
Frequently asked questions about Settings
What is phakpoom/settings used for?
phakpoom/settings is a Laravel package for storing application settings in the database instead of hardcoding every option in configuration files. It supports caching and typed access so you can read and update values at runtime. This is useful for admin-editable options that should not require a redeploy.
How do I install phakpoom/settings in Laravel?
Install the package with Composer using composer require phakpoom/settings. Then follow the repository README for any required migrations, configuration publishing, or service provider setup. Laravel package discovery may handle provider registration automatically, but check the README for the exact steps.
Does phakpoom/settings support caching?
Yes, the package is described as storing settings in the database with caching. Caching helps avoid a database query every time a setting is read. Review the package documentation for cache configuration and clearing behavior after updates.
How do I define settings and defaults in phakpoom/settings?
The package is designed around defining settings and keeping sensible defaults in code. You define the available settings and their default values, then override them with database-backed values at runtime. Check the README for the exact definition format and default resolution rules.
Can I store and retrieve typed setting values?
Yes, phakpoom/settings provides typed access to setting values. That means you can work with values as the expected PHP types rather than manually casting raw database strings. See the package documentation for supported types and casting behavior.
Which Laravel versions are supported by phakpoom/settings?
The provided overview does not list specific Laravel version constraints. Check the package composer.json and README on GitHub for the supported Laravel and PHP versions before installing. This is especially important if your application runs an older or newer Laravel release.
How do I update a setting at runtime?
You update settings through the package API rather than editing configuration files directly. The package persists the new value in the database and should respect its caching layer. Consult the README for the exact update methods and any cache invalidation requirements.
How can I test code that uses phakpoom/settings?
Use Laravel's testing tools and set up the package's database storage in your test environment. You can seed or update settings in test setup so your application code reads known values. Check the README for any package-specific testing helpers or cache considerations.
Is phakpoom/settings suitable for production admin-editable configuration?
Yes, that is the primary use case described for the package. It lets administrators change settings stored in the database without redeploying the application. For production, review caching, database migrations, access control, and validation around the settings you expose.
What are some alternatives to phakpoom/settings?
Alternatives include other Laravel settings packages such as spatie/laravel-settings and similar database-backed configuration libraries. The best choice depends on typed settings support, caching behavior, Laravel version compatibility, and maintenance activity. Compare the package APIs and documentation against your application's needs.
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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings