We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a023b4 commit 628f0bcCopy full SHA for 628f0bc
README.md
@@ -83,6 +83,13 @@ $dotenv = new Dotenv\Dotenv(__DIR__);
83
$dotenv->load();
84
```
85
86
+Optionally you can pass in a filename as the second parameter, if you would like to use something other than `.env`
87
+
88
+```php
89
+$dotenv = new Dotenv\Dotenv(__DIR__, 'myconfig');
90
+$dotenv->load();
91
+```
92
93
All of the defined variables are now accessible with the `getenv`
94
method, and are available in the `$_ENV` and `$_SERVER` super-globals.
95
0 commit comments