A quick and easy way to modify your .env files programmatically.
You can install the package via composer:
composer require gaming-engine/dotenv-writeruse GamingEngine\DotEnv\Writer;
(new Writer())
->load(__DIR__.'./.env') // Loads an existing file
->setValue('config', 'hello') // Overrides the value
->write(__DIR__.'./.env'); // Writes it back out to diskcomposer testPlease see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.