forked from CrystalCollective/CrystalPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env_sample.php
62 lines (54 loc) · 1.64 KB
/
env_sample.php
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
<?php
/*******************************************************************************
*
* CrystalPHP Framework by Crystal Collective
* An open source application development framework for PHP
*
* This file is part of CrystalPHP which is released under the MIT License (MIT)
*
* Copyright (c) 2019 - 2019, Crystal Collective
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*
******************************************************************************/
$ENV['mode'] = 'dev';
//$ENV['mode'] = 'prod';
$ENV['cache']['driver'] = 'file';
$ENV['enc']['unique_id'] = '123bbj3r2kbh2Gk5';
$ENV['enc']['key'] = 'c9eRT3j';
$ENV['mail']['driver'] = "smtp";
$ENV['mail']['host'] = "smtp.mailtrap.io";
$ENV['mail']['port'] = 2525;
$ENV['mail']['username'] = "";
$ENV['mail']['password'] = "";
$ENV['mail']['from_address'] = "[email protected]";
$ENV['mail']['from_name'] = "Example";
$ENV['pay']['imojo']['api_key'] = "";
$ENV['pay']['imojo']['auth_token'] = "";
$ENV['pay']['imojo']['salt'] = "";
//current development environment
$ENV['db']['driver'] = 'MySQL';
$ENV['db']['env'] = 'dev2';
//Different Environment configs
$ENV['db']['dev'] = [
"host_match" => "",
"host" => "localhost",
"database" => "dbname",
"username" => "dbuser",
"password" => "userpass",
];
$ENV['db']['dev2'] = [
"host_match" => "abc.com",
"host" => "localhost",
"database" => "dbname",
"username" => "dbuser",
"password" => "userpass",
];
$ENV['db']['prod'] = [
"host_match" => "xyz.com",
"host" => "localhost",
"database" => "dbname",
"username" => "dbuser",
"password" => "userpass",
];