-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.html
More file actions
79 lines (71 loc) · 3.16 KB
/
environment.html
File metadata and controls
79 lines (71 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<html>
<head>
<title>Environment Variables</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<header>
<div class="container">
<div class="row">
<div class="prev col-md-3">
<label for="">Prev</label>
<a href="/middleware.html">Middleware</a> </div>
<div class="current col-md-6">
<h3 class="title">
5. Environment Variables </h3>
<small class="parent">Radar for PHP</small>
</div>
<div class="next col-md-3">
<label for="">Next</label>
<a href="/container.html">Container Configuration</a> </div>
<div class="clearfix"></div>
</div>
</div>
</header>
<section id="content">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 id="5">5. Environment Variables</h1>
<p>You can place environment-specific values in the <code>.env</code> file at the Radar
project root. Radar will use this file at boot time to populate the <code>$_ENV</code>
superglobal. You can also use <code>getenv()</code> to get the same values.</p>
<p>The <code>web/index.php</code> file uses the <a href="https://github.com/josegonzalez/php-dotenv">josegonzalez/dotenv</a> library for the environment loading. You can control the loader behavior by setting options through the <code>Loader::load()</code> call in <code>web/index.php</code>. Please consult the <a href="https://github.com/josegonzalez/php-dotenv#static-environment-definition">php-dotenv documentation</a> for more information.</p>
<p>Alternatively, if you have another loader you prefer to use, or none at all,
modify <code>web/index.php</code> and <code>composer.json</code> as you see fit.</p>
</div>
</div>
</div>
</section>
<footer>
<section id="links">
<div class="container">
<div class="row">
<div class="prev col-md-3">
<label for="">Prev</label>
<a href="/middleware.html">4. Middleware</a> </div>
<div class="parent col-md-6">
<label for="">Up</label>
<a href="/">Radar for PHP</a> </div>
<div class="next col-md-3">
<label for="">Next</label>
<a href="/container.html">6. Container Configuration</a> </div>
<div class="clearfix"></div>
</div>
</div>
</section>
<section id="copyright">
<div class="container">
<div class="row">
<div class="col-md-12">
<span>
Powered by <a href="">Bookdown.io</a> | Designed by <a href="">yuripertamax</a>
</span>
</div>
</div>
</div>
</section>
</footer>
</body>
</html>