<?php
$m = new MongoClient;
$d = $m->whisky;
$c = $d->whisky;

$document = [
    'name' => 'Glenmorangie',
    'age'  => 25,
    'vintage' => 1980,
    'strength' => 46.3,
    'distillery' => [
        'name' => 'Glenmorangie',
        'country' => 'Scotland',
        'region' => 'Speyside',
    ],
];
$c->insert( $document );
?>