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

phpmob/settings

A Laravel package for managing application settings through a simple, developer-friendly API. Store and retrieve configuration values at runtime, keeping global settings organized and easy to update without editing config files.

Deep Wiki
Context7

phpmob/settings is a lightweight settings manager for Laravel applications that lets you store and retrieve application configuration as key-value pairs in the database. It provides a clean facade and helper API for reading and writing settings at runtime, so values like site names, feature toggles, or contact details can be changed without touching config files or redeploying.

Settings are cached for fast access and support default fallbacks when a key is missing, making it safe to use throughout your application.

  • Simple get/set API with dotted key support
  • Persistent storage via a dedicated settings table
  • Configurable caching to reduce database queries
  • Default values for undefined keys
  • Framework-agnostic core with Laravel integration
Frequently asked questions about Settings
What is phpmob/settings used for?
phpmob/settings is a PHP settings library intended for managing persistent application settings as key-value configuration values. It is described as framework-friendly for Laravel/PHP projects, so it fits use cases where runtime options need to be stored, retrieved, and updated without hardcoding them. The provided overview does not list every feature, so check the README for the exact API and storage backend.
How do I install phpmob/settings with Composer?
Install it with Composer using composer require phpmob/settings. After installation, follow the package README for any Laravel service provider registration, facade setup, or configuration publishing steps. The short overview does not mention extra installation requirements, so verify the repository documentation before wiring it into an existing app.
Does phpmob/settings support Laravel?
The package is described as suitable for Laravel/PHP projects and offers a simple, framework-friendly API. The provided overview does not specify which Laravel versions are supported or whether auto-discovery is enabled. Check the package composer.json requirements and README before installing it in a specific Laravel version.
How do I store and retrieve settings with phpmob/settings?
The package is meant to store, retrieve, and update key-value configuration values through a simple API. The exact method names, helper functions, or facade calls are not included in the provided excerpt. Refer to the README for the correct syntax and for details on whether values are persisted to a database, file, or another backend.
Do I need to publish configuration or run migrations for phpmob/settings?
The provided overview does not mention configuration publishing, migrations, or a database table. Inspect the package files and README to see whether it uses database storage, file storage, or config-based storage. If migrations are required, run them before reading or writing settings in your application.
Can I use phpmob/settings outside Laravel?
It is a PHP library described for Laravel/PHP projects, so it may be usable in plain PHP if its dependencies allow it. However, the overview does not confirm framework-independent usage or list required Laravel components. Check composer.json and the README to verify whether it is tightly coupled to Laravel.
Does phpmob/settings cache settings for performance?
The provided overview does not state whether the package includes caching. Persistent settings may be read from storage on each request depending on the implementation, which can affect performance in high-traffic applications. If caching is not built in, consider caching settings in your application layer and clearing that cache when values change.
Is phpmob/settings suitable for production use?
It can be suitable for production if its persistence backend, file permissions, and concurrency behavior are appropriate for your application. The overview does not include maintenance status, release history, or security notes, so review the repository activity and composer constraints before relying on it. Also confirm how settings are stored and whether updates are safe under concurrent requests.
How do I test code that uses phpmob/settings?
Use a test database or temporary storage backend and reset settings between tests so state does not leak. If the package registers a Laravel service, you can bind a fake implementation or use its public API to set known values in test setup. The README should be checked for any package-specific test helpers or configuration overrides.
What are alternatives to phpmob/settings?
Common alternatives include spatie/laravel-settings for Laravel-focused typed settings, database-backed configuration tables, or Laravel config files for values that do not need runtime changes. Choose based on whether you need persistence, caching, type casting, and framework integration. Since phpmob/settings is a small key-value library, compare its API and storage model against those options.
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections