2013-07-26 64 views
2

我试图按照官方github页面上的说明进行操作:https://github.com/marklogic/mlphp如何使用(或不使用)composer来安装MarkLogic PHP库?

我有全球作曲家。所以,我创建了一个composer.json

{ 
    "requires": { 
    "MarkLogic\MLPHP" : "dev-master" 
    } 
} 

但是,当我打电话作曲家安装它说:

Loading composer repositories with package information 
Installing dependencies (including require-dev) 
Nothing to install or update 
Generating autoload files 

而且我可以看到供应商增加了自动加载磁带机,没有别的,没有mlphp。我尝试了其他几种方法,在Google上查看了几个小时,没有人看起来有问题。我错过了什么?

谢谢!

回答

3

Ach在自述文件中有拼写错误。它应该是

{ 
    "require": { 
     "marklogic/mlphp": "dev-master" 
    } 
} 
+0

嗯,我几乎可以肯定我也尝试过这个版本(小写全部,反斜杠) - 但做了最后的尝试,现在的作品。非常感谢Eric;) – itarato

+0

最大的问题是插槽名称中的type-oh:'require'而不是'requires'。 –

相关问题