Skip to content

Commit bb6d520

Browse files
committed
Create README.md
1 parent bfd67c0 commit bb6d520

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PHP .env editor
2+
3+
A `.env` file editor library for PHP.
4+
5+
## Usage example
6+
7+
```php
8+
$envFile = \EnvEditor\EnvFile::loadFrom(__DIR__."/.env.example");
9+
10+
$envFile->setValue("exampleKey", "exampleValue");
11+
$envFile->setValue("LOG_DIR", __DIR__."/logs");
12+
// ...
13+
14+
$envFile->saveTo(__DIR__."/.env");
15+
```

0 commit comments

Comments
 (0)