Skip to content

Listing all the collections

Thomas Cocchiara edited this page Jan 10, 2018 · 1 revision

Previous

Listing all the available collections

With the adapter instantiated just run

$collections = $adapter->listCollections();

To see the name of the available collections you could run the following:

$collections = $adapter->listCollections();

foreach ($collections as $key => $collection)
{
    echo "Collection number $key name: $collection->name <br>";
}

Previous

Clone this wiki locally