library fields-mongodb
MongoDB storage adapter for back-2-95/fields
back-2-95/fields-mongodb
MongoDB storage adapter for back-2-95/fields
- Tuesday, February 23, 2016
- by back-2-95
- Repository
- 0 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
back-2-95/fields-mongodb
MongoDB storage adapter for back-2-95/fields, (*1)
, (*2)
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:, (*3)
$api = new \BackTo95\Fields\Api();
$client = new \MongoDB\Client;
$storage = new \BackTo95\Fields\MongoDb\MongoDbStorage($client, 'database', 'collection');
$api->setStorage($storage);