3
3
[ ![ Build Status] ( https://api.travis-ci.org/mongodb/mongo-php-driver.png?branch=master )] ( https://travis-ci.org/mongodb/mongo-php-driver )
4
4
[ ![ 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 )
5
5
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.
8
21
9
22
In the long run, we hope that userland packages will be built atop this driver
10
23
to implement various APIs (e.g. a BC layer for the existing driver, new fluent
11
24
interfaces), management utilities (for creating admin utilities and cluster
12
25
management applications), and other interesting libraries.
13
26
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
-
18
27
## Documentation
19
28
- http://docs.php.net/set.mongodb
20
29
- http://mongodb.github.io/mongo-php-driver
@@ -37,7 +46,7 @@ which is distributed as
37
46
38
47
See [ CONTRIBUTING.md] ( CONTRIBUTING.md )
39
48
40
- ## Related projects
49
+ ## Related Projects
41
50
- [ HHVM Implementation of this driver] ( https://github.com/mongodb/mongo-hhvm-driver )
42
51
- [ Official high-level library] ( https://github.com/mongodb/mongo-php-library )
43
52
- [ MongoDB Transistor] ( https://github.com/bjori/mongo-php-transistor ) Lightweight ODM using the [ Persistable] ( http://php.net/bson\\ persistable ) interface
0 commit comments