-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SUGGESTION] Function to generate a .env file #4
Comments
Can you give a bit more info? |
I mean a way to get a string of a .env-formatted file from an array (or something similar), for example use M1\Env\Compiler;
$a = [
'FOO' => 1,
'BAR' => 'whatever'
echo Compiler::compile($a); Returns:
|
I could implement something like this, how would multidimensional arrays work though as Bash doesn't support them. |
Either provide an option to give a callable to handle arrays within an array or just flat-out don't allow them to happen |
Hmmm, I'm feeling like just not letting them happen is a better option. |
This would be super useful for things like auto-generated configuration files written in .env (which is what I'm currently attempting to use)
The text was updated successfully, but these errors were encountered: