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
Config Writer

Config Writer Laravel Package

devdojo/config-writer

A Laravel package for writing and updating config values in PHP config files at runtime, letting you persist settings changes without editing files by hand.

View on GitHub
Deep Wiki
Context7

Utility to create and update Laravel config and .env files

Frequently asked questions about Config Writer
How do I install devdojo/config-writer in Laravel?
Install it with Composer using composer require devdojo/config-writer, then follow the package README for any Laravel service provider or configuration publishing steps. Confirm the package supports your Laravel and PHP versions in composer.json before adding it to production.
Can devdojo/config-writer update nested config values using dot notation?
Yes. It supports dot-notation keys, so a key like app.name maps to nested arrays in config/app.php. This is useful for settings screens that update only one nested option.
Does devdojo/config-writer work with Laravel config caching?
Writing a config file does not automatically update Laravel’s cached configuration. If config:cache is active, you will need to clear or rebuild the cache before the new value is read by the app. Verify whether the package warns you about this in your proof of concept.
Is devdojo/config-writer safe to use for an admin settings panel?
It is designed for low-frequency persistent settings changes, such as admin panels and setup wizards. Treat it carefully in production by validating input, backing up config files, and restricting who can trigger writes. For high-frequency runtime settings or multi-node deployments, use a database or configuration service instead.
How does devdojo/config-writer handle concurrent writes to config files?
The package’s public description does not guarantee atomic writes or file locking. Before using it where multiple requests may write at once, audit the source and run a concurrency test. If locking is absent, serialize writes in your application or avoid request-path writes.
Does devdojo/config-writer preserve comments and formatting in PHP config files?
That depends on the writer implementation and should be verified in a sandbox. Test files with comments, ordering, quoting, and multiline values before relying on it for human-maintained config files. If formatting must be preserved exactly, keep writes limited to generated config files or wrap the package with backups and review.
What Laravel and PHP versions does devdojo/config-writer support?
Check the package’s composer.json and README for the exact PHP and Laravel version constraints. The available overview does not list supported versions, so confirm compatibility with your application’s runtime before adoption. Run the package’s tests or a proof of concept on your target Laravel version.
Can I use devdojo/config-writer to write .env values?
The overview focuses on writing PHP config files, not .env files. The TPM assessment flags .env writing as a sensitive area to verify, including formatting, quoting, and secrets handling. Do not assume .env support; review the source and test with a disposable .env file first.
Is devdojo/config-writer maintained and safe for production?
The package has very low ecosystem validation, so treat it as a small utility that needs internal review rather than a battle-tested dependency. Check the license, recent commits, test coverage, and maintainer responsiveness before production use. Wrapping it behind an internal adapter makes it easier to fork or replace later.
What are alternatives to devdojo/config-writer for Laravel settings?
For application settings, database-backed settings packages or a custom settings table are usually safer than rewriting PHP config files. For deployment-time configuration, use environment variables or secrets management injected by your platform. If you only need to edit config files during setup, a small internal writer behind an adapter can be a good alternative.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
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