php-dataset/bin/dataset-info

21 lines
418 B
PHP
Executable File

#!/usr/bin/env php
<?php
foreach ([
__DIR__."/../vendor",
__DIR__."/../../../vendor"
] as $dir) {
if (file_exists($dir."/autoload.php")) {
require_once $dir."/autoload.php";
echo $dir."\n";
}
}
$datasetManager = new NoccyLabs\Dataset\DatasetManager();
$datasets = $datasetManager->getAvailableDatasets();
foreach ($datasets as $dataset) {
echo $dataset->getIdentifier()."\n";
}