This repository was archived by the owner on Sep 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.php
155 lines (155 loc) · 4.64 KB
/
requirements.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
/**
* These are the Yii core requirements for the [[YiiRequirementChecker]] instance.
* These requirements are mandatory for any Yii application.
*/
/* @var $this YiiRequirementChecker */
return array(
array(
'name' => 'PHP 5.1+ version',
'mandatory' => true,
'condition' => version_compare(PHP_VERSION, '5.1.0', '>='),
'memo' => 'PHP 5.1.0 or higher is required.',
'by' => 'Yii Framework 1'
),
array(
'name' => 'PHP 5.5+ version',
'mandatory' => true,
'condition' => version_compare(PHP_VERSION, '5.5.0', '>='),
'memo' => 'PHP 5.5.0 or higher is required.',
'by' => 'CiiMS'
),
array(
'name' => 'Reflection extension',
'mandatory' => true,
'condition' => class_exists('Reflection', false),
'by' => 'Yii Framework 1'
),
array(
'name' => 'PCRE extension',
'mandatory' => true,
'condition' => extension_loaded('pcre'),
'by' => 'Yii Framework 1'
),
array(
'name' => 'SPL extension',
'mandatory' => true,
'condition' => extension_loaded('SPL'),
'by' => 'Yii Framework 1'
),
array(
'name' => 'Ctype extension',
'mandatory' => true,
'condition' => extension_loaded('ctype'),
'by' => 'Yii Framework 1'
),
array(
'name' => 'MBString extension',
'mandatory' => true,
'condition' => extension_loaded('mbstring'),
'memo' => 'Required for multibyte encoding string processing.',
'by' => 'Yii Framework 1'
),
array(
'name' => 'OpenSSL extension',
'mandatory' => false,
'condition' => extension_loaded('openssl'),
'memo' => 'Required by encrypt and decrypt methods.',
'by' => 'Yii Framework 1'
),
array(
'name' => 'PDO Extension',
'mandatory' => true,
'condition' => extension_loaded('pdo'),
'by' => 'Yii Framework 1'
),
array(
'name' => 'MySQL PDO Extension',
'mandatory' => true,
'condition' => extension_loaded('pdo_mysql'),
'by' => 'Yii Framework 1'
),
array(
'name' => 'Zend OpCache',
'mandatory' => false,
'condition' => extension_loaded('Zend OPCache'),
'memo' => 'Recommended for performance',
'by' => 'CiiMS'
),
array(
'name' => 'PHP Redis',
'mandatory' => false,
'condition' => extension_loaded('redis'),
'memo' => 'Recommended for performance',
'by' => 'CiiMS'
),
array(
'name' => 'PHP ZIP',
'mandatory' => true,
'condition' => extension_loaded('zip'),
'memo' => 'For working with ZIP archives',
'by' => 'CiiMS'
),
array(
'name' => 'PHP cURL',
'mandatory' => true,
'condition' => extension_loaded('curl'),
'memo' => 'For working with remote themes',
'by' => 'CiiMS'
),
array(
'name' => 'PHP Mcrypt',
'mandatory' => true,
'condition' => extension_loaded('mcrypt'),
'by' => 'CiiMS'
),
array(
'name' => 'Fileinfo extension',
'mandatory' => false,
'condition' => extension_loaded('fileinfo'),
'memo' => 'Required for files upload to detect correct file mime-types.',
'by' => 'Yii Framework 1'
),
array(
'name' => 'DOM extension',
'mandatory' => false,
'condition' => extension_loaded('dom'),
'memo' => 'Required for REST API to send XML responses via <code>yii\web\XmlResponseFormatter</code>.',
'by' => 'Yii Framework 1'
),
array(
'name' => 'Writable Assets Directory',
'mandatory' => true,
'condition' => is_writable(__DIR__ . '/../../../web/assets'),
'by' => 'CiiMS',
'memo' => 'Required by CiiMS for asset publication'
),
array(
'name' => 'Writable Config Directory',
'mandatory' => true,
'condition' => is_writable(__DIR__ . '/../../../protected/config'),
'by' => 'CiiMS',
'memo' => 'Required by CiiMS Installer'
),
array(
'name' => 'Writable Yii1 Runtime Directory',
'mandatory' => true,
'condition' => is_writable(__DIR__ . '/../../../protected/runtime'),
'by' => 'CiiMS',
'memo' => 'Required by CiiMS for logging, configuration temporary storage'
),
array(
'name' => 'Writable Uploads Directory',
'mandatory' => true,
'condition' => is_writable(__DIR__ . '/../../../web/uploads'),
'by' => 'CiiMS',
'memo' => 'Required by CiiMS when using file based uploads'
),
array(
'name' => 'Writable Themes Directory',
'mandatory' => true,
'condition' => is_writable(__DIR__ . '/../../../themes'),
'by' => 'CiiMS',
'memo' => 'Required by CiiMS for uploading themes'
),
);