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

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

axdlee/laravel-config-writer
============================

Write to Laravel Config files and maintain file integrity. Support Laravel 5.3+

1.0.2(9y ago)34.1k1[2 issues](https://github.com/axdlee/laravel-config-writer/issues)1MITPHP

Since Apr 20Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (1)

Laravel Config Writer For Laravel 5.3 + 5.4+
--------------------------------------------

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

Write to Laravel Config files and maintain file integrity.

This library can support Lravel 5.3+.

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.

### Usage Instructions

[](#usage-instructions)

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

```
Axdlee\Config\ConfigServiceProvider::class,
```

You can now write to config files:

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

### Usage outside Laravel

[](#usage-outside-laravel)

The `Rewrite` class can be used anywhere.

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

30

—

LowBetter than 62% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

3358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85a785d2fa7745b5b655674e5afc09bce98ab4d9329dcdbc88ad18f03f87415d?d=identicon)[axdlee](/maintainers/axdlee)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[artesaos/seotools

SEO Tools for Laravel and Lumen

3.4k5.3M63](/packages/artesaos-seotools)[cmgmyr/messenger

Simple user messaging tool for Laravel

2.6k2.5M6](/packages/cmgmyr-messenger)[anahkiasen/former

A powerful form builder

1.3k1.4M14](/packages/anahkiasen-former)[glorand/laravel-model-settings

Model Settings for your Laravel app

9141.1M4](/packages/glorand-laravel-model-settings)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.4M36](/packages/prologue-alerts)

PHPackages © 2026

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