updated readme

This commit is contained in:
Chris 2022-10-30 23:24:27 +01:00
parent f1ab6bd74b
commit abde48640f
1 changed files with 4 additions and 0 deletions

View File

@ -30,8 +30,12 @@ Package | Description
use NoccyLabs\Dataset\DatasetManager;
$dm = new DatasetManager();
// Call on getDataset() if you want access to the metadata,
// Replace with openDataset() to quicly call getDataset()->open()
$ds = $dm->getDataset("noccylabs/dataset-iso3166#countries");
// This is how you get the metadata
echo "Dataset ID: ".$ds->getIdentifier(); // noccylabs/dataset-iso3166#countries
echo "Dataset version: ".$ds->getVersion(); // 2022.10.1