Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A PHP Package for editing dotenv files

License

NotificationsYou must be signed in to change notification settings

sixlive/dotenv-editor

Repository files navigation

Latest Version on PackagistTotal Downloadsrun-tests

This package provides some basic tools for editing dotenv files.

Installation

You can install the package via composer:

> composer require sixlive/dotenv-editor

Usage

Add a section

Given we have an existing file atbase_path('.env').

APP_KEY=supersecretAPP_FOO=BAR

We 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

Testing

> vendor/bin/phpunit

Code Style

StyleCI will apply theLaravel preset.

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security

If you discover any security related issues, please emailoss@tjmiller.co instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.

About

A PHP Package for editing dotenv files

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp