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

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

masnatacion/laravel-config-writer
=================================

Configuration extension

1.2(9y ago)127MITPHPPHP &gt;=7.1.0

Since Aug 11Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel 5.4 Config Writer
-------------------------

[](#laravel-54-config-writer)

Write to Laravel Config files and maintain file integrity.

This library is an extension of the Config component used by Laravel 5.4. 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 `octobercms\laravel-config-writer`.

### Usage Instructions

[](#usage-instructions)

Install through composer:

```
composer require "sergeymiracle/config-writer"
```

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

```
SergeyMiracle\Config\ConfigServiceProvider::class,
```

You can now write to config files:

```
Config::write(['app.url' => 'http://domain.com']);

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

### Usage outside Laravel

[](#usage-outside-laravel)

The `Rewrite` class can be used anywhere.

```
$writeConfig = new SergeyMiracle\Config\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

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

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 ~316 days

Total

4

Last Release

3345d ago

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

1.0.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9383de9350a58532ce005637d7cefb69741d97843814f519bcd38a3fd6ac6e3a?d=identicon)[masnatacion](/maintainers/masnatacion)

---

Top Contributors

[![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 (12 commits)")[![SergeyMiracle](https://avatars.githubusercontent.com/u/2399561?v=4)](https://github.com/SergeyMiracle "SergeyMiracle (4 commits)")[![martink635](https://avatars.githubusercontent.com/u/444687?v=4)](https://github.com/martink635 "martink635 (2 commits)")[![miguelon85](https://avatars.githubusercontent.com/u/3221114?v=4)](https://github.com/miguelon85 "miguelon85 (2 commits)")

---

Tags

laravelconfigwrite

### Embed Badge

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

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