MongoDB storage adapter for back-2-95/fields
- Use MongoDb for storing Entities handled by \BackTo95\Fields API (create own storage adapter for it)
Create API and set MongoDB storage:
$api = new \BackTo95\Fields\Api();
$client = new \MongoDB\Client;
$storage = new \BackTo95\Fields\MongoDb\MongoDbStorage($client, 'database', 'collection');
$api->setStorage($storage);