PHPackages                             duelistrag3/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. duelistrag3/laravel-config-writer

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

duelistrag3/laravel-config-writer
=================================

Laravel provider to be able to rewrite configuration

v2.0.8(4y ago)111MITPHPPHP &gt;=7.1.0

Since Aug 11Pushed 4y agoCompare

[ Source](https://github.com/DuelistRag3/laravel-config-writer)[ Packagist](https://packagist.org/packages/duelistrag3/laravel-config-writer)[ RSS](/packages/duelistrag3-laravel-config-writer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (11)Used By (0)

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.

Fork of `tekreme73\laravel-config-writer`.

Support
-------

[](#support)

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

Setup
-----

[](#setup)

Install through composer:

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

```

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

```
DuelistRag3\ConfigWriter\ServiceProvider::class,
```

### Lumen case

[](#lumen-case)

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

```
$app->register(DuelistRag3\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 DuelistRag3\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
]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~310 days

Recently: every ~0 days

Total

10

Last Release

1503d ago

Major Versions

v1.0 → v2.02018-10-25

PHP version history (2 changes)v1.0PHP &gt;=5.4.0

v2.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a5886ca8731cfe5972fc323ff66d76b607aeedbfef5dca121126fdd514f4af2?d=identicon)[DuelistRage](/maintainers/DuelistRage)

---

Top Contributors

[![rrebilla](https://avatars.githubusercontent.com/u/111347542?v=4)](https://github.com/rrebilla "rrebilla (20 commits)")[![greatwitenorth](https://avatars.githubusercontent.com/u/547583?v=4)](https://github.com/greatwitenorth "greatwitenorth (15 commits)")[![daftspunk](https://avatars.githubusercontent.com/u/1392869?v=4)](https://github.com/daftspunk "daftspunk (13 commits)")[![DuelistRag3](https://avatars.githubusercontent.com/u/23101343?v=4)](https://github.com/DuelistRag3 "DuelistRag3 (10 commits)")[![martink635](https://avatars.githubusercontent.com/u/444687?v=4)](https://github.com/martink635 "martink635 (2 commits)")

---

Tags

laravelconfigproviderwrite

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/duelistrag3-laravel-config-writer/health.svg)](https://phpackages.com/packages/duelistrag3-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)
