back-2-95/fields-mongodb

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

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