Download the PHP package shah-newaz/laravel-config-writer without Composer
On this page you can find all versions of the php package shah-newaz/laravel-config-writer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shah-newaz/laravel-config-writer
More information about shah-newaz/laravel-config-writer
Files in shah-newaz/laravel-config-writer
Package laravel-config-writer
Short Description Laravel provider to be able to rewrite configuration
License MIT
Homepage http://www.intelle-hub.com
Informations about the package laravel-config-writer
Laravel Config Writer
Notice ⚠
This package was forked daftspunk/laravel-config-writer and the errors that were made in the original package were fixed.
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.
Support
This provider is designed to be used in Laravel from 5.4
version.
Setup
Install through composer:
Using Laravel 5.4?
If you are installing with Laravel 5.4 you will need to add this to
app/config/app.php
under the 'providers' key.
Otherwise, if you are on 5.5 this happens automatically thanks to package auto-discovery.
Lumen case
Add this to bootstrap/app.php
in the 'service providers' section declaration:
Usage
You can write to config files like this:
Outside Laravel
The Rewrite
class can be used anywhere.