sergeymiracle/config-writer
Larablocks Analysis
sergeymiracle/config-writer works with Laravel 5 (latest release 1.2, Mar 16, 2017), which reached end of life: no more fixes, even for security.
Laravel 4 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Mar 16, 2017)
- 3 downloads a month (needs 10,000)
- 9 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Mar 16, 2017.
- No releases in the last 12 months.
- First released: Aug 11, 2014.
- Monthly downloads: 3.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require sergeymiracle/config-writer |
|
| Latest Version: | 1.2 |
| PHP: | >=7.1.0 |
| Laravel: | 5 |
| Older releases: | 4 |
| License: | MIT |
| Last Updated: | Mar 16, 2017 |
| Links: | GitHub · Packagist |
Laravel 5.4 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
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
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
]);
Related Packages
A basic laravel runtime configuration handler that is stored as simple key/value...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.2 | >=7.1.0 | ~5.0. | MIT | |
| 1.0.2 | >=7.1.0 | ~5.0. | MIT | |
| 1.0.1 | >=7.1.0 | ~5.0. | MIT | |
| v1.0 | >=5.4.0 | 4.2.x | MIT |