Skip to content

Commit

Permalink
Using mongodb extension instead of mongo
Browse files Browse the repository at this point in the history
It increases the compatibility of the library to newer versions of PHP and MongoDB server.
  • Loading branch information
jrbasso committed Feb 15, 2017
1 parent c270246 commit 3dcbade
Show file tree
Hide file tree
Showing 9 changed files with 384 additions and 159 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0

services:
- mongodb

before_script:
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer install --dev

- pecl install -f mongodb
- composer install

script: ./bin/phpunit --coverage-text

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
},
"require": {
"php": ">=5.5.0",
"ext-mongo": "*"
"ext-mongodb": "*",
"mongodb/mongodb": "~1.1.1"
},
"require-dev": {
"phpunit/phpunit": "~4.6.0"
Expand Down
Loading

0 comments on commit 3dcbade

Please sign in to comment.