diff options
Diffstat (limited to 'tests/showmods.php')
| -rw-r--r-- | tests/showmods.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/showmods.php b/tests/showmods.php new file mode 100644 index 0000000..3408435 --- /dev/null +++ b/tests/showmods.php @@ -0,0 +1,9 @@ +<?php + +$mods = glob('../mods/*.json'); + +foreach ($mods as $mod) { + $json = file_get_contents($mod); + $data = json_decode($json, true); + echo $mod . ': ' . $data['name'] . PHP_EOL; +} |
