artarts36/env-editor

1.2.3 2021-12-13 11:02 UTC

This package is auto-updated.

Last update: 2024-02-13 15:50:55 UTC


README

PHP Composer License: MIT Total Downloads

Installation:

composer require artarts36/env-editor

Examples:

use ArtARTs36\EnvEditor\Editor;

$env = Editor::load('.env')
    ->set('APP_NAME', 'Test APP')
    ->set('APP_ENV', 'local');

$env->save();
// or
Editor::save($env);

var_dump($env->get('APP_NAME'));
var_dump($env->get('APP_ENV'));