2017 © Pedro Peláez
 

symfony-bundle mongo-odm-aggregation-bundle

This Bundle integrates mongo aggregation queries into you Symfony2 project.

image

solution/mongo-odm-aggregation-bundle

This Bundle integrates mongo aggregation queries into you Symfony2 project.

  • Friday, April 22, 2016
  • by f1nder
  • Repository
  • 6 Watchers
  • 12 Stars
  • 30,704 Installations
  • PHP
  • 8 Dependents
  • 1 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

MongoAggregationBundle Build Status

Integration Mongo Pipeline Builder into you Doctrine2 Mongo-ODM, (*1)

Library not yet ready., (*2)

Install

Add to composer and install/update vendors, (*3)

  "solution/mongo-odm-aggregation-bundle": "dev-master"

Add to your AppKernel and install/update vendors ``` php new Solution\MongoAggregationBundle\SolutionMongoAggregationBundle(), (*4)


###Usage After install, bundle create mongo aggregation query manager for every DocumentManager Example: If you have default document manager

doctrine_mongodb.odm.default_document_manager, (*5)

bundle created

doctrine_mongodb.odm.default_aggregation_query, (*6)

etc

####Example create aggregation query
``` php
$expr = new \Solution\MongoAggregation\Pipeline\Operators\Expr;
$aq = $this->get('doctrine_mongodb.odm.default_aggregation_query')
        ->getCollection('AdmPlayerBundle:Comments')->createAggregateQuery()
        ->group(['_id' => ['month' => $expr->month('$dateRegistration')], 'count' => $expr->sum(1)])
        ->sort(['count' => -1])
        ->limit(50);

The Versions

22/04 2016

dev-master

9999999-dev

This Bundle integrates mongo aggregation queries into you Symfony2 project.

  Sources   Download

MIT

The Requires

 

query mongo pipeline aggregation

22/04 2016

v0.1.1

0.1.1.0

This Bundle integrates mongo aggregation queries into you Symfony2 project.

  Sources   Download

MIT

The Requires

 

query mongo pipeline aggregation

04/11 2015

v0.1

0.1.0.0

This Bundle integrates mongo aggregation queries into you Symfony2 project.

  Sources   Download

MIT

The Requires

 

query mongo pipeline aggregation