back-2-95/fields-mongodb

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.

MongoDB storage adapter for back-2-95/fields

dev-master 2016-02-23 04:46 UTC

This package is auto-updated.

Last update: 2020-11-11 11:22:17 UTC


README

MongoDB storage adapter for back-2-95/fields

Travis CI

What should this library do?

  • Use MongoDb for storing Entities handled by \BackTo95\Fields API (create own storage adapter for it)

API

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);