Download the PHP package quentingosset/laravel-config-writer without Composer
On this page you can find all versions of the php package quentingosset/laravel-config-writer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quentingosset/laravel-config-writer
More information about quentingosset/laravel-config-writer
Files in quentingosset/laravel-config-writer
Package laravel-config-writer
Short Description Laravel provider to be able to rewrite configuration
License MIT
Informations about the package laravel-config-writer
Laravel Config Writer
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.
Important Note
This library was originally by daftspunk/laravel-config-writer
all efforts and credits goes to the author and to
the contributors to the original repository. This repo is mostly used internally and might not changed so for
updated and latest features please follow the original repository.
Support
This provider is designed to be used in Laravel from 5.4
version.
Setup
Install through composer:
Add this to app/config/app.php
under the 'providers' key:
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.