PHP code example of plansky / mongolid-bundle
1. Go to this page and download the library: Download plansky/mongolid-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
plansky / mongolid-bundle example snippets
$bundles = array(
...
new Plansky\MongolidBundle\MongolidBundle(),
);
class MyDocument extends \Plansky\MongolidBundle\Document\BaseDocument
{
/**
* Collection's that will be used to persist my document
* @var string
*/
protected $collection = 'my_collection';
}