我正在尝试将 getId3 库集成到我的 symfony 项目中。所以我按照这里的说明https://github.com/phansys/GetId3关于使用 composer 集成这个库但它失败了。
这是我的 somposer.json 文件
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*" ,
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"friendsofsymfony/facebook-bundle": "dev-master",
"friendsofsymfony/user-bundle": "*",
"imagine/imagine": "dev-master",
"phansys/getid3": "2.1.*@dev"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"branch-alias": {
"dev-master": "2.2-dev"
}
这是错误消息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/framework-standard-edition 2.2.x-dev ->
satisfiable by symfony/framework-standard-edition[2.2.x-dev].
- symfony/framework-standard-edition 2.2.x-dev requires phansys/getid3 dev-master
-> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your
minimum- stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for
more details.
此外,当我运行 ./composer search getId3 时,我确实找到了我正在尝试集成的包的名称,所以这不是拼写错误。我现在真的被困住了,如果有人可以帮助我真的需要在我的项目中使用 getId lib,我将不胜感激。