-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppConfig.php
More file actions
36 lines (29 loc) · 858 Bytes
/
Copy pathAppConfig.php
File metadata and controls
36 lines (29 loc) · 858 Bytes
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
<?php
class AppConfig
{
const SERVER_EMAIL = "admin@dkrock.com";
//Database Configuration.
const HOST = "localhost";
const DBUSER = "root";
const DBPASSWORD = "123456";
const DATABASE = "test";
const PORT = null;
const SOCKET = null;
const CHAR_SET = 'utf8';
//Default File Upload Size
const DEFAULT_UPLOAD_SIZE = 5; //Size 5 MB
//File Upload suppoted formats
const FILE_SUPPORT = array(
"jpg" => "image/jpg",
"jpeg" => "image/jpeg",
"gif" => "image/gif",
"png" => "image/png",
);
//Default Date Format.
const DATETIME_FORMAT = 'Y-m-d H:i:s';
//JWT Configuration.
const JWT_SEQURITY_KEY = "YOUR_JWT_SEQURIT_KEY";
const JWT_ENCRYPTION = 'HS512';
const JWT_LEEWAY = 60;
const SESSION_TIMEOUT = 60 * 24; //Example 60 Minutes * 24 Hours
}