Skip to content

Commit e21a2d4

Browse files
committed
Merged pull request #137
2 parents e888db7 + cec3a87 commit e21a2d4

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Contributing to pecl/MongoDB
1+
# Contributing to the PHP Driver for MongoDB
22

33

4-
## Building from VCS
4+
## Building from VCS (GitHub)
55

66
Developers who would like to contribute to the driver will need to build it from VCS
77
like so:
@@ -15,11 +15,6 @@ $ ./configure --enable-developer-flags
1515
$ make -j8 all
1616
```
1717

18-
Be aware that we are submoduling the `1.2-dev` branch of libmongoc and libbson as
19-
during the development of phongo there are things we require that simply
20-
are not yet in a release (or even finished) :)
21-
22-
2318
## Testing
2419

2520
The test suites expects to find `PHONGO-SERVERS.json` in the system temp directory (typically `/tmp`).

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@
33
[![Build Status](https://api.travis-ci.org/mongodb/mongo-php-driver.png?branch=master)](https://travis-ci.org/mongodb/mongo-php-driver)
44
[![Coverage Status](https://coveralls.io/repos/mongodb/mongo-php-driver/badge.svg?branch=master&service=github)](https://coveralls.io/github/mongodb/mongo-php-driver?branch=master)
55

6-
The purpose of this driver is to provide a thin glue between MongoDB
7-
and PHP, implementing only fundamental and performance-critical components
6+
This is the low-level PHP driver for MongoDB. The API is the same
7+
as the HHVM driver for MongoDB. The documentation for both of them is the same,
8+
and can be found at http://docs.php.net/manual/en/set.mongodb.php
9+
10+
The driver is written to be a bare bone layer to talk to MongoDB, and
11+
therefore misses many convenience features. Instead, these convenience methods
12+
have been split out into a layer written in PHP, the
13+
[MongoDB Library](http://mongodb.github.io/mongo-php-library/).
14+
Using this library should be your preferred way of interacting with MongoDB.
15+
16+
Please note that the new HHVM and PHP drivers implement a **different API**
17+
from the legacy driver at http://pecl.php.net/package/mongo; therefore
18+
existing libraries that use the legacy driver (e.g.
19+
[Doctrine MongoDB's ODM](http://doctrine-mongodb-odm.readthedocs.org/en/latest/))
20+
will not work with the new drivers.
821

922
In the long run, we hope that userland packages will be built atop this driver
1023
to implement various APIs (e.g. a BC layer for the existing driver, new fluent
1124
interfaces), management utilities (for creating admin utilities and cluster
1225
management applications), and other interesting libraries.
1326

14-
The goal is to encourage community contribution and involvement with these
15-
components (with a lower barrier of entry) while also keeping the overall design
16-
fast and powerful.
17-
1827
## Documentation
1928
- http://docs.php.net/set.mongodb
2029
- http://mongodb.github.io/mongo-php-driver
@@ -37,7 +46,7 @@ which is distributed as
3746

3847
See [CONTRIBUTING.md](CONTRIBUTING.md)
3948

40-
## Related projects
49+
## Related Projects
4150
- [HHVM Implementation of this driver](https://github.com/mongodb/mongo-hhvm-driver)
4251
- [Official high-level library](https://github.com/mongodb/mongo-php-library)
4352
- [MongoDB Transistor](https://github.com/bjori/mongo-php-transistor) Lightweight ODM using the [Persistable](http://php.net/bson\\persistable) interface

0 commit comments

Comments
 (0)