-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
36 lines (34 loc) · 1.08 KB
/
index.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
<?php
if (!file_exists(__DIR__.'/output/setup.log')) {
echo '<h1>Frameworks are not ready.</h1>';
echo '<pre>bash setup.sh</pre>';
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PHP Micro & Router Framework Benchmark</title>
</head>
<body>
<h1>List of frameworks</h1>
<ul>
<?php
if ($handle = opendir('./frameworks/')) {
while (false !== ($entry = readdir($handle))) {
if ('.' != $entry && '..' != $entry && is_dir(__DIR__.'/frameworks/'.$entry)) {
echo '<li><a href="/php-micro-router-framework-benchmark/frameworks/'.$entry.'/">'.$entry.'</a></li>'.PHP_EOL;
}
}
closedir($handle);
}
?>
</ul>
<h2><a href="/php-micro-router-framework-benchmark/graph.php">Show graphs</a></h2>
<hr>
<footer>
<p style="text-align: right">This page is a part of <a href="https://github.com/dejurin/php-micro-router-framework-benchmark">php-micro-router-framework-benchmark</a>, powered by <a href="https://github.com/kenjis/php-framework-benchmark">php-framework-benchmark</a>.</p>
</footer>
</body>
</html>