我想在我的symfony項目中集成getId3庫。所以我按照這裏的說明https://github.com/phansys/GetId3關於使用composer這個庫的集成,但它失敗了。在symfony2中的getID3 lib集成?
這裏看看我的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搜索getId3我找到了該包的太赫茲名我正在嘗試整合,因此這不是一個錯字錯誤。 我現在真的被卡住了,如果有人可以幫助我真的需要在我的項目中使用getId lib,我會很感激。
我試過了,但我仍然得到相同的錯誤 –
檢查更新請 –
我正在做更新,但結束後我會花費太多時間發佈結果。謝謝。 –