Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
A PHP Package for editing dotenv files
License
sixlive/dotenv-editor
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This package provides some basic tools for editing dotenv files.
You can install the package via composer:
> composer require sixlive/dotenv-editorGiven we have an existing file atbase_path('.env').
APP_KEY=supersecretAPP_FOO=BARWe can add a new section to the existing configuration file.
$editor =newDotenvEditor;$editor->load(base_path('.env'));$editor->heading('Examples');$editor->set('FOO','bar');$editor->set('BAZ','bax');$editor->unset('APP_FOO');$editor->save();
This will result in the following changes.
APP_KEY=supersecret# ExamplesFOO=barBAZ=bax> vendor/bin/phpunitStyleCI will apply theLaravel preset.
Please seeCHANGELOG for more information on what has changed recently.
Please seeCONTRIBUTING for details.
If you discover any security related issues, please emailoss@tjmiller.co instead of using the issue tracker.
The MIT License (MIT). Please seeLicense File for more information.
About
A PHP Package for editing dotenv files
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.