forked from ilrWebServices/union
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (20 loc) · 696 Bytes
/
index.php
File metadata and controls
28 lines (20 loc) · 696 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
<?php
require __DIR__ . '/vendor/autoload.php';
use Union\Components;
$components = new Components;
foreach ($components->getComponents() as $component) {
echo '-------' . PHP_EOL;
echo $component->id() . PHP_EOL;
if ($component->getDescription()) {
echo $component->getLabel() . PHP_EOL . PHP_EOL;
echo $component->getDescription() . PHP_EOL . PHP_EOL;
echo (new Parsedown())->text($component->getDescription()) . PHP_EOL . PHP_EOL;
foreach ($component->getTemplateVars() as $var) {
echo $var->getVariableName() . ' (' . $var->getType() . ')' . PHP_EOL;
echo ' ' . $var->getDescription() . PHP_EOL . PHP_EOL;
}
}
else {
echo PHP_EOL;
}
}