2017 © Pedro Peláez
 

symfony-bundle mongodbbundle

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

image

pouzor/mongodbbundle

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  • Thursday, February 16, 2017
  • by Pouzor
  • Repository
  • 1 Watchers
  • 3 Stars
  • 998 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 69 % Grown

The README.md

Pouzor MongoDB Bundle

Build Status Code Coverage Scrutinizer Code Quality, (*1)

MongoDBBundle is the easiest and fastest way to integrate MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x)., (*2)

It's not an ODM : you don't need to declare all your data model. You will work with array object same as you can get/set in mongoDB (after json encode/decode), (*3)

/!\ This bundle is only working with mongodb.so driver.

For the legacy driver (mongo.so), please check [Pouzor/MongoBundle] (https://github.com/Pouzor/mongobundle), (*4)

It use mongodb.so + https://github.com/mongodb/mongo-php-library, (*5)

Usage

When the bundle is configured, you can access to the mongo manager service, who provide acces to Repository Service (aka Mongo collection manager). Then, is pretty easy to request this Repository, (*6)

//document.manager.my_project is specific mongodb (db, host, port...) configuration in app/config/config.yml
$manager = $this->getContainer()->get('document.manager.my_project');


$repository = $manager->getRepository('User');


$user = $repository->find($id);
$users = $repository->findBy(['location' => "Paris"]);


$repository->deleteMany(['gift' => ['$lte' => 0]]);

Documentation

  1. [Installation + configuration] (Resources/doc/install.md). Documentation about installation and configuration features., (*7)

  2. [How to use] (Resources/doc/how-to-use.md). How to use mongodbbundle in your symfony project, (*8)

Contribution

  • Thx to Ibrael Espinosa for the huge contribution to this bundle.

The Versions

16/02 2017

dev-master

9999999-dev

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb symfony mongo mongodbbundle

16/02 2017

0.1.4

0.1.4.0

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb symfony mongo mongodbbundle

12/01 2017

0.1.1

0.1.1.0

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb symfony mongo mongodbbundle

12/01 2017

0.1.3

0.1.3.0

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb symfony mongo mongodbbundle

11/01 2017

0.1.2

0.1.2.0

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb symfony mongo mongodbbundle

20/12 2016

0.1.0

0.1.0.0

Bundle with new Mongo 3.2 version driver

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Avatar Pouzor

mongodb mongo