PHPackages                             solution/mongo-odm-aggregation-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. solution/mongo-odm-aggregation-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

solution/mongo-odm-aggregation-bundle
=====================================

This Bundle integrates mongo aggregation queries into you Symfony2 project.

v0.1.1(10y ago)1250.6k3[1 PRs](https://github.com/f1nder/SolutionMongoAggregationBundle/pulls)3MITPHPPHP &gt;=5.4.0

Since Nov 4Pushed 4y ago6 watchersCompare

[ Source](https://github.com/f1nder/SolutionMongoAggregationBundle)[ Packagist](https://packagist.org/packages/solution/mongo-odm-aggregation-bundle)[ RSS](/packages/solution-mongo-odm-aggregation-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (3)

MongoAggregationBundle [![Build Status](https://camo.githubusercontent.com/396c51b2de2628914f46ea99c65610bb8ba1a3b7e3cf7742d45b496cd434c9f5/68747470733a2f2f7472617669732d63692e6f72672f66316e6465722f536f6c7574696f6e4d6f6e676f4167677265676174696f6e42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/f1nder/SolutionMongoAggregationBundle)
=====================================================================================================================================================================================================================================================================================================================================================================

[](#mongoaggregationbundle-)

Integration [Mongo Pipeline Builder](https://github.com/f1nder/SolutionPipelineBuilder) into you Doctrine2 Mongo-ODM

Library not yet ready.

\###Install

Add to composer and install/update vendors

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

```

Add to your AppKernel and install/update vendors

```
  new Solution\MongoAggregationBundle\SolutionMongoAggregationBundle()
```

\###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

```

bundle created

```
doctrine_mongodb.odm.default_aggregation_query

```

etc

\####Example create aggregation query

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~169 days

Total

2

Last Release

3679d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d7b50031b74da8cef36404f801496d1d07bccd1c7f7929f9a0c2cc6d9e12035?d=identicon)[f1nder](/maintainers/f1nder)

---

Top Contributors

[![f1nder](https://avatars.githubusercontent.com/u/498063?v=4)](https://github.com/f1nder "f1nder (10 commits)")[![tbal](https://avatars.githubusercontent.com/u/2643300?v=4)](https://github.com/tbal "tbal (1 commits)")

---

Tags

querymongopipelineaggregation

### Embed Badge

![Health badge](/badges/solution-mongo-odm-aggregation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/solution-mongo-odm-aggregation-bundle/health.svg)](https://phpackages.com/packages/solution-mongo-odm-aggregation-bundle)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[krzysztof-gzocha/searcher

Searcher is a framework-agnostic search query builder. Search queries are written using Criterias and can be run against MySQL, MongoDB, ElasticSearch or even files.

11861.6k1](/packages/krzysztof-gzocha-searcher)[sonata-project/doctrine-mongodb-admin-bundle

Symfony Sonata / Integrate Doctrine MongoDB ODM into the SonataAdminBundle

68839.2k3](/packages/sonata-project-doctrine-mongodb-admin-bundle)[moriony/silex-mongo-provider

Mongo service provider for the Silex framwork.

118.5k](/packages/moriony-silex-mongo-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
