If the variable value had no quotes a comment at the end of the
line was added to the variable.
Spaces between text and comment mark will be removed too
Old:
FOO=Test # Comment -> $_ENV['FOO'] = "Test # Comment"
New:
FOO=Test # Comment -> $_ENV['FOO'] = "Test"
Rename the class from ReadEnvFile to DotEnv.
Add everything to a composer json file so it can be published to
composer repository.
Add phpUnit tests for system
If there was this
FOO="bar"
Then the # comment block was attached to bar because FOO was seen as a
multiline block although the quotes are in one line only