PHPackages                             ulff/php-mongodb-client-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. ulff/php-mongodb-client-bundle

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

ulff/php-mongodb-client-bundle
==============================

05PHP

Since Sep 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ulff/PhpMongodbClientBundle)[ Packagist](https://packagist.org/packages/ulff/php-mongodb-client-bundle)[ RSS](/packages/ulff-php-mongodb-client-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

PhpMongodbClientBundle
======================

[](#phpmongodbclientbundle)

A Symfony bundle for MongoDB. Compatible with new [mongodb](https://pecl.php.net/package/mongodb) driver, unlike the [doctrine/mongodb](https://packagist.org/packages/doctrine/mongodb) which is compatible only with deprecated and no longer supported [mongo](https://pecl.php.net/package/mongo) driver.

See:

Installation and configuration
------------------------------

[](#installation-and-configuration)

### Step 1: Install bundle

[](#step-1-install-bundle)

Install bundle using [composer](https://getcomposer.org):

```
php composer.phar require "ulff/php-mongodb-client-bundle:dev-master"

```

Enable the bundle in AppKernel.php:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Ulff\PhpMongodbClientBundle\UlffPhpMongodbClientBundle(),
    ];

    // ...
}
```

### Step 2: add bundle configuration

[](#step-2-add-bundle-configuration)

Add configuration to config.yml. Minimal required is:

```
# app/config/config.yml

ulff_php_mongodb_client:
    connection:
        host: hostname-here
```

There are also other configuration options, like:

```
# app/config/config.yml

ulff_php_mongodb_client:
    connection:
        host: hostname-here
        port: 27017               # optional, default 27017
        username: username-here   # optional, default not set
        password: password-here   # optional, default not set
    options: { }
        # any custom connection options here, passed as assoc array
```

Replace values with proper ones.

Usage
-----

[](#usage)

#### Client usage

[](#client-usage)

Mongodb client is available as a service:

```
$client = $this->get('ulff_php_mongodb_client.client');
```

#### Getting manager

[](#getting-manager)

Service provides access to the mongodb manager:

```
$manager = $this->get('ulff_php_mongodb_client.client')->getManger();
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2435762?v=4)[Olaf Gałązka](/maintainers/ulff)[@ulff](https://github.com/ulff)

---

Top Contributors

[![ulff](https://avatars.githubusercontent.com/u/2435762?v=4)](https://github.com/ulff "ulff (8 commits)")

### Embed Badge

![Health badge](/badges/ulff-php-mongodb-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ulff-php-mongodb-client-bundle/health.svg)](https://phpackages.com/packages/ulff-php-mongodb-client-bundle)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M114](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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