Php Mongodb odm编写器请求

Php Mongodb odm编写器请求,php,mongodb,Php,Mongodb,我无法通过以下命令为mongodb odm请求编写器:编写器请求原则/mongodb odm。每次运行此命令时,我都会收到一条错误消息,上面说: Your requirements could not be resolved to an installable set of packages. Problem 1 - doctrine/mongodb-odm 1.0.0 requires doctrine/mongodb ~1.2 -> satisfiable by doct

我无法通过以下命令为mongodb odm请求编写器:
编写器请求原则/mongodb odm
。每次运行此命令时,我都会收到一条错误消息,上面说:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - doctrine/mongodb-odm 1.0.0 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1].
    - doctrine/mongodb-odm 1.0.1 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1].
    - doctrine/mongodb-odm 1.0.2 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1].
    - doctrine/mongodb-odm 1.0.3 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1].
    - doctrine/mongodb-odm 1.0.4 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1].
    - doctrine/mongodb 1.2.1 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb 1.2.0 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.
    - Installation request for doctrine/mongodb-odm ^1.0 -> satisfiable by doctrine/mongodb-odm[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.
现在,我的问题是,即使我的配置看起来很好,我也会出现这个错误。我做了一些研究,所以我知道php.ini文件应该包含哪些内容。因此,我的php.ini文件包含以下行:

extension="mongo.so"
在我的Mac中有两个php.ini文件,因此,为了保险起见,我把这一行放进了另一行。没有变化

我正在使用MacBookPro(13英寸,2012年年中)-操作系统X 10.11.3

任何帮助都将不胜感激