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

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

larapack/config-writer
======================

Save changes to the configuration file in script.

v1.0.1(10y ago)39114.6k↑194.3%13[9 issues](https://github.com/larapack/config-writer/issues)[1 PRs](https://github.com/larapack/config-writer/pulls)20MITPHP

Since Dec 11Pushed 8y ago3 watchersCompare

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

READMEChangelog (2)DependenciesVersions (7)Used By (20)

config-writer
=============

[](#config-writer)

Save changes to the configuration file in script.

Installing
----------

[](#installing)

Install using Composer `composer require larapack/config-writer 1.*`.

Using it's facade
-----------------

[](#using-its-facade)

You can use our facade `Larapack\ConfigWriter\Facade` to ad the `write`-method to the default `Config`-facade.

To do this you must open your config file `config/app.php` and replace `'Config' => 'Illuminate\Support\Facades\Config::class',` under `providers`-section with our facade `Larapack\ConfigWriter\Facade::class`. Then it will look like `'Config' => 'Larapack\ConfigWriter\Facade::class',`.

Once this is done you can use `Config::write($configFile, $changes)`, example changing your application url can be done by `Config::write('app', ['url' => 'http://your-site.com'])`.

Using the repository
--------------------

[](#using-the-repository)

You can also use the repository `Larapack\ConfigWriter\Repository` which works a little like a model.

Example:

```
$config = new Larapack\ConfigWriter\Repository('app'); // loading the config from config/app.php

$config->set('debug', false); // set the config you wish

if ($config->get('url') == 'http://localhost') // you can even get config from this
{
	$config->set('debug', true);
}

$config->save(); // save those settings to the config file once done editing

```

If you do this a lot I recommend adding the alias `'ConfigWriter' => Larapack\ConfigWriter\Repository::class` under the `alias`-section in the config file `config/app.php`.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~70 days

Total

3

Last Release

3718d ago

### Community

Maintainers

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

---

Top Contributors

[![marktopper](https://avatars.githubusercontent.com/u/2232539?v=4)](https://github.com/marktopper "marktopper (18 commits)")[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (6 commits)")

---

Tags

laravelconfigpackagewritersavelarapack

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

490883.0k7](/packages/akaunting-laravel-setting)[evilfreelancer/openvpn-php

OpenVPN config generator writen on PHP

315.0k](/packages/evilfreelancer-openvpn-php)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.9k2](/packages/creasi-laravel-nusa)

PHPackages © 2026

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