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.
config/*.php and .env at runtime, which is the exact primitive behind installers (DB credentials, app URL, mail settings) and admin-editable settings panels..env and config can be mutated by the app rather than by a config-management pipeline..env" tickets and fewer manual ops interventions during customer onboarding directly affects gross margin on self-hosted or BYO-cloud offerings.Consider it when:
.env keys from application code, typically inside an installer, settings controller, or artisan command.config:cache in the environments where writes happen (or you explicitly re-cache after writing).Look elsewhere when:
.env inside a container is lost on restart and diverges across replicas..env writes are plaintext on disk and a real exposure risk if file permissions or backups are loose.To executives: This is a small, free utility that could let us ship a self-serve setup and settings experience weeks earlier, cutting manual onboarding work and support tickets. The cost is near zero to try, but it carries dependency risk — one maintainer, minimal adoption — so I'd treat it as a starting point to fork or reimplement, not a long-term platform bet. Recommended: a two-week spike behind a feature flag, with a decision gate on whether to vendor the code in-house.
To engineering: It's a thin wrapper for writing Laravel config and .env values from code — useful for installers and admin settings. Before we adopt: confirm our deployment model (single vs. multi-node, immutable images), confirm we are not depending on this at request time, and review file-write permissions and secret handling. My expectation is we read it, fork it, and own it — it is small enough that ownership cost is trivial and dependency risk drops to zero.
How can I help you explore Laravel packages today?