Skip to content

Latest commit

 

History

History

.docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Contributte Doctrine MongoDB

MongoDB to Nette Framework.

Content

Setup

Install package

composer require nettrine/mongodb

Register extension

extensions:
  nettrine.mongodb: Nettrine\MongoDB\DI\MongoDBExtension

Configuration

You can look at configuration options here: https://www.php.net/manual/en/mongodb-driver-manager.construct.php

Schema definition

nettrine.mongodb:
 uri: <string>
 uriOptions: <array>
 driverOptions: <array>

Under the hood

Default URI is: mongodb://127.0.0.1

Side notes

  1. At this time we support only 1 connection, the default connection. If you need more connections (more databases?), please open an issue or send a PR. Thanks.

Other

This repository is inspired by this package.

Thank you guys.

Examples