PHPackages                             quentingosset/laravel-config-writer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. quentingosset/laravel-config-writer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quentingosset/laravel-config-writer
===================================

Laravel provider to be able to rewrite configuration

v1.0(5y ago)1531MITPHPPHP &gt;=7.1.0CI failing

Since Jun 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/quentingosset/laravel-config-writer)[ Packagist](https://packagist.org/packages/quentingosset/laravel-config-writer)[ RSS](/packages/quentingosset-laravel-config-writer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

[![PHP Composer](https://github.com/quentingosset/laravel-config-writer/workflows/PHP%20Composer/badge.svg)](https://github.com/quentingosset/laravel-config-writer/workflows/PHP%20Composer/badge.svg)

Laravel Config Writer
=====================

[](#laravel-config-writer)

Write to Laravel Config files and maintain file integrity.

This library is an extension of the Config component used by Laravel. It adds the ability to write to configuration files.

You can rewrite array values inside a basic configuration file that returns a single array definition (like a Laravel config file) whilst maintaining the file integrity, leaving comments and advanced settings intact.

The following value types are supported for writing: strings, integers, booleans and single-dimension arrays.

Important Note
--------------

[](#important-note)

This library was originally by `daftspunk/laravel-config-writer` all efforts and credits goes to the author and to the contributors to the original repository. This repo is mostly used internally and might not changed so for updated and latest features please follow the original repository.

Support
-------

[](#support)

This provider is designed to be used in Laravel from `5.4` version.

Setup
-----

[](#setup)

Install through composer:

```
composer require "kevyworks/laravel-config-writer"

```

Add this to `app/config/app.php` under the 'providers' key:

```
Kevyworks\Laravel\ConfigWriter\ServiceProvider::class,
```

### Lumen case

[](#lumen-case)

Add this to `bootstrap/app.php` in the 'service providers' section declaration:

```
$app->register(Kevyworks\Laravel\ConfigWriter\ServiceProvider::class);
```

Usage
-----

[](#usage)

You can write to config files like this:

```
Config::write('app.url', 'http://domain.com');

app('config')->write('app.url', 'http://domain.com');
```

### Outside Laravel

[](#outside-laravel)

The `Rewrite` class can be used anywhere.

```
$writeConfig = new Kevyworks\Laravel\ConfigWriter\DataWriter\Rewrite;
$writeConfig->toFile('path/to/config.php', [
    'item' => 'new value',
    'nested.config.item' => 'value',
    'arrayItem' => ['Single', 'Level', 'Array', 'Values'],
    'numberItem' => 3,
    'booleanItem' => true,
    'app.name' => '%{env("APP_NAME", "MyNewApp")}'
]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ca3ad22860e2713f510ea47c8653b0dc7a07160e71f145b1e851cecee60143f?d=identicon)[quentingosset7500](/maintainers/quentingosset7500)

---

Top Contributors

[![quentingosset](https://avatars.githubusercontent.com/u/6824137?v=4)](https://github.com/quentingosset "quentingosset (5 commits)")

---

Tags

laravelconfigproviderwrite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quentingosset-laravel-config-writer/health.svg)

```
[![Health](https://phpackages.com/badges/quentingosset-laravel-config-writer/health.svg)](https://phpackages.com/packages/quentingosset-laravel-config-writer)
```

###  Alternatives

[daftspunk/laravel-config-writer

Laravel provider to be able to rewrite configuration

17548.8k1](/packages/daftspunk-laravel-config-writer)[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
