Commit 1b701a54 authored by Jeremy Mikola's avatar Jeremy Mikola

Update readme and composer.json for PECL mongodb-0.2.0

parent 3db125f1
phongo libraries MongoDB library for PHP
================ =======================
MongoDB CRUD interface for [PHongo](https://github.com/10gen-labs/mongo-php-driver-prototype). This library provides a high-level abstraction around the lower-level
[PHP driver](https://github.com/10gen-labs/mongo-php-driver-prototype) (i.e. the
`mongodb` extension).
While the extension provides a limited API for executing commands, queries, and
write operations, this library implements an API similar to that of the
[legacy PHP driver](http://php.net/manual/en/book.mongo.php). It contains
abstractions for client, database, and collection objects, and provides methods
for CRUD operations and common commands (e.g. index and collection management).
This interface is meant for the general public to use with PHongo, If you are developing an application with MongoDB, you should consider using
and will serve as the default reference interface when creating other bindings. this library, or another high-level abstraction, instead of the extension alone.
For further information about the architecture of this library and the `mongodb`
extension, see:
- http://www.mongodb.com/blog/post/call-feedback-new-php-and-hhvm-drivers
## Documentation ## Documentation
- http://10gen-labs.github.io/mongo-php-library-prototype/
- http://10gen-labs.github.io/mongo-php-library-prototype/
# Installation # Installation
As `PHongo libraries` is an abstraction layer for PHongo, it naturally requires As a high-level abstraction for the driver, this library naturally requires that
[PHongo to be installed](http://10gen-labs.github.io/mongo-php-driver-prototype/#installation): the [`mongodb` extension be installed](http://10gen-labs.github.io/mongo-php-driver-prototype/#installation):
$ wget https://github.com/10gen-labs/mongo-php-driver-prototype/releases/download/0.1.5/phongo-0.1.5.tgz $ pecl install mongodb-alpha
$ pecl install phongo-0.1.5.tgz $ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
$ echo "extension=phongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
The preferred method of installing this library is with
The best way to then install `PHongo libraries` is via [composer](https://getcomposer.org/) [Composer](https://getcomposer.org/) by running the following from your project
by adding the following to root:
[composer.json](https://getcomposer.org/doc/01-basic-usage.md#composer-json-project-setup):
$ composer require "mongodb/mongodb=0.2.x-dev"
```json
"repositories": [ ## Reporting Issues
{
"type": "vcs", Please use the following form to report any issues:
"url": "https://github.com/10gen-labs/mongo-php-libraries-prototype"
} - https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1
],
"require": {
"ext-phongo": ">=0.1.5",
"10gen-labs/mongo-php-libraries-prototype": "dev-master"
}
```
and then running
```shell
$ composer install
```
## Reporting tickets
- https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1
...@@ -10,12 +10,17 @@ ...@@ -10,12 +10,17 @@
{ "name": "Derick Rethans", "email": "github@derickrethans.nl" } { "name": "Derick Rethans", "email": "github@derickrethans.nl" }
], ],
"require": { "require": {
"ext-phongo": ">=0.1.2" "ext-mongodb": "^0.2"
}, },
"require-dev": { "require-dev": {
"fzaninotto/faker": "~1.0" "fzaninotto/faker": "~1.0"
}, },
"autoload": { "autoload": {
"psr-4": { "MongoDB\\": "src/" } "psr-4": { "MongoDB\\": "src/" }
},
"extra": {
"branch-alias": {
"dev-master": "0.2.x-dev"
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment