Commit Graph

8 Commits

Author SHA1 Message Date
74b0d02a7c Ignore comments at the end of line
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"
2022-06-09 09:20:29 +09:00
a7bca09bf4 Comment fix in phpunit test file 2022-06-08 15:32:41 +09:00
06479cadea phpunit test update, update all static testers, add psalm tester
Add Readme file update for install via composer

psalm static checker added
phan and phpstan update with ignoring vendor and test files as they are
not needed in final system
2022-06-08 13:34:48 +09:00
b73a24b447 Class rename, composer add, phpUnit tests add
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
2022-06-08 11:24:23 +09:00
6cc09fb089 Allow . in variables 2021-10-14 13:36:50 +09:00
75367b2724 Fix next line read with double quote blocks in one line
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
2021-10-11 09:30:36 +09:00
c5c40a1780 Add example .env file and update readme 2021-10-11 09:10:52 +09:00
de80a9c061 Create dotenv readEnvFile single function 2021-10-11 08:58:36 +09:00