Skip to content

Commit 444127e

Browse files
committed
add readme
1 parent 03a4023 commit 444127e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: README.md

+22
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
11
# PHP dotenv-vault
2+
3+
4+
<img src="https://raw.githubusercontent.com/motdotla/dotenv/master/dotenv.svg" alt="dotenv-vault" align="right" width="200" />
5+
6+
## Installation
7+
8+
```shell
9+
composer require dotenv-org/phpdotenv-vault
10+
```
11+
12+
As early as possible in your application bootstrap process, load .env:
13+
14+
```php
15+
16+
use DotenvVault\DotenvVault;
17+
require __DIR__.'/vendor/autoload.php';
18+
19+
$dotenv = DotenvVault::createImmutable(__DIR__, '.env.vault');
20+
$dotenv->load(); # take environment variables from .env.vault
21+
22+
```
23+

0 commit comments

Comments
 (0)