Go to file
2022-09-03 15:31:28 +02:00
example Initial commit 2022-09-03 02:28:03 +02:00
src Cleanup debug output from JsonReader 2022-09-03 15:31:28 +02:00
.gitignore Initial commit 2022-09-03 02:28:03 +02:00
composer.json Initial commit 2022-09-03 02:28:03 +02:00
LICENSE Initial commit 2022-09-03 02:28:03 +02:00
README.md Initial commit 2022-09-03 02:28:03 +02:00

Dataset Library for PHP/Composer

This is a library for loading datasets from bundled packages.

Example

Require Dataset, and some actual datasets:

$ composer require noccylabs/dataset juicebox/flavordata

You can now open the desired sets and do useful stuff with the data:

use NoccyLabs\Dataset\DatasetManager;

$dm = new DatasetManager();
$flavorsSet = $dm->getDataset("juicebox/flavordata/flavors");

$iter = $flavorsSet->filter([ 'brand' => 'fa' ]);
foreach ($iter as $row) {
    echo $row->get("flavor", "No flavor name? How?!") . "\n";
}