-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
87 lines (84 loc) · 3.47 KB
/
config.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
<?php
declare(strict_types=1);
use LaminasDiagnosticsFactories\CpuPerformancePsrContainerFactory;
use LaminasDiagnosticsFactories\DirWritablePsrContainerFactory;
use LaminasDiagnosticsFactories\DiskFreePsrContainerFactory;
use LaminasDiagnosticsFactories\ExtensionLoadedPsrContainerFactory;
use LaminasDiagnosticsFactories\GuzzleHttpServicePsrContainerFactory;
use LaminasDiagnosticsFactories\PDOCheckPsrContainerFactory;
use LaminasDiagnosticsFactories\PhpVersionPsrContainerFactory;
use LaminasDiagnosticsFactories\SecurityAdvisoryPsrContainerFactory;
return [
'diagnostics' => [
'cpu_performance' => [
'label' => 'CPU Performance',
'minPerformance' => 0.5,
],
'free_tmp_disk' => [
'label' => 'Free Disk Space',
'size' => '100MB',
'path' => '/tmp',
],
'writable_tmp_directory' => [
'label' => 'Writable temp directory',
'path' => '/tmp',
],
'php_extensions' => [
'label' => 'PHP extensions',
'extensionName' => [
'gd',
'pdo',
'simplexml',
],
],
'laminas_ping' => [
'label' => 'Laminas Project',
'requestOrUrl' => 'https://getlaminas.org/',
'headers' => [],
'options' => [],
'statusCode' => 200,
'content' => 'the enterprise-ready PHP Framework',
'guzzle' => null,
'method' => 'GET',
'body' => null,
],
'mezzio_ping' => [
'label' => 'Mezzio Project',
'requestOrUrl' => 'https://docs.mezzio.dev/',
'headers' => [],
'options' => [],
'statusCode' => 200,
'content' => 'PSR-15 Middleware in Minutes',
'guzzle' => null,
'method' => 'GET',
'body' => null,
],
'mysql_connection' => [
'label' => 'MySQL Connection',
'dsn' => 'mysql://localhost/my_database',
'username' => 'my_username',
'password' => 'oFPZc!W&zV>,YCrz',
'timeout' => 1,
],
'php_version' => [
'label' => 'PHP version',
'expectedVersion' => '7.4',
'operator' => '>=',
],
'security_advisory' => [
'label' => 'Security Advisory',
'lockFilePath' => __DIR__ . '/../composer.lock',
],
],
'di' => [
'CpuPerformance' => [CpuPerformancePsrContainerFactory::class, 'cpu_performance'],
'FreeTmpDisk' => [DiskFreePsrContainerFactory::class, 'free_tmp_disk'],
'WritableTmpDir' => [DirWritablePsrContainerFactory::class, 'writable_tmp_dir'],
'PhpExtensions' => [ExtensionLoadedPsrContainerFactory::class, 'php_extensions'],
'LaminasPing' => [GuzzleHttpServicePsrContainerFactory::class, 'laminas_ping'],
'MezzioPing' => [GuzzleHttpServicePsrContainerFactory::class, 'mezzio_ping'],
'MysqlConnection' => [PDOCheckPsrContainerFactory::class, 'mysql_connection'],
'PhpVersion' => [PhpVersionPsrContainerFactory::class, 'php_version'],
'SecurityAdvisory' => [SecurityAdvisoryPsrContainerFactory::class, 'security_advisory'],
],
];