You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like the php-dotenv library to consume .env content as a string, rather than a file which is read from a path. Is there any way I'm not seeing to do this currently, or could that functionality be added?
The text was updated successfully, but these errors were encountered:
@insanityfarm You might try checking out m1/Env: https://github.com/m1/Env ... it's the underlying parser for this library, and supports passing in a string as opposed to loading from a file directly:
$env = new Parser(file_get_contents('test.env'));
$arr = $env->getContent();
// example 2 -- statically
$arr = Parser::parse(file_get_contents('test.env'));
I'd like the php-dotenv library to consume .env content as a string, rather than a file which is read from a path. Is there any way I'm not seeing to do this currently, or could that functionality be added?
The text was updated successfully, but these errors were encountered: