Skip to content

mongodb/mongo-php-library

Repository files navigation

phongo libraries

MongoDB CRUD interface for PHongo.

This interface is meant for the general public to use with PHongo, and will serve as the default reference interface when creating other bindings.

Documentation

Installation

As PHongo libraries is an abstraction layer for PHongo, it naturally requires PHongo to be installed:

$ wget https://github.com/10gen-labs/mongo-php-driver-prototype/releases/download/0.1.2/phongo-0.1.2.tgz
$ pecl install phongo-0.1.2.tgz
$ echo "extension=phongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

The best way to then install PHongo libraries is via composer by adding the following to composer.json:

    "repositories": [
        {
	    "type": "vcs",
	    "url": "https://github.com/10gen-labs/mongo-php-libraries-prototype"
        }
    ],
    "require": {
        "ext-phongo": ">=0.1.2",
        "10gen-labs/mongo-php-libraries-prototype": "dev-master"
    }

and then running

$ composer install

Reporting tickets

TODO