PHPackages                             brianshepanek/cakephp-mongodb - 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. brianshepanek/cakephp-mongodb

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

brianshepanek/cakephp-mongodb
=============================

MongoDB Datasource for CakePHP

2.0.1(11y ago)086MITPHPPHP &gt;=5.3.0

Since Jun 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/brianshepanek/cakephp-mongodb)[ Packagist](https://packagist.org/packages/brianshepanek/cakephp-mongodb)[ Docs](https://github.com/ichikaway/cakephp-mongodb)[ RSS](/packages/brianshepanek-cakephp-mongodb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

mongoDB datasource for CakePHP
==============================

[](#mongodb-datasource-for-cakephp)

Requirements
------------

[](#requirements)

PHP5, pecl mongo ()

Installation
------------

[](#installation)

this repository should be installed in the same way as any other plugin.

To install the driver for use in a single application:

```
cd my/app/plugins
git clone git://github.com/ichikaway/cakephp-mongodb.git mongodb

```

To install the driver for use in any/multiple application(s)

```
# where ROOT is the name of the directory parent to the base index.php of CakePHP.
cd ROOT/plugins
git clone git://github.com/ichikaway/cakephp-mongodb.git mongodb

```

Sample Code
-----------

[](#sample-code)

To use this DB driver, install (obviously) and define a db source such as follows:

```
