2015-03-18 77 views
0

我想在我的Symfony2项目安装条纹但是我得到这个错误信息: 您的要求不能被解析为可安装的一组软件包。

问题1

- Conclusion: don't install payum/stripe 0.14.0 
- Conclusion: don't install payum/stripe 0.13.0 
- Conclusion: don't install payum/stripe 0.12.0 
- Conclusion: don't install payum/stripe 0.11.0 
- Installation request for payum/stripe *@stable -> satisfiable by payum/stripe[0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0]. 
- Conclusion: remove payum/payum 0.9.3 
- payum/stripe 0.10.0 requires payum/core 0.10.* -> satisfiable by payum/core[0.10.0, 0.10.x-dev]. 
- don't install payum/core 0.10.0|don't install payum/payum 0.9.3 
- don't install payum/core 0.10.x-dev|don't install payum/payum 0.9.3 
- Installation request for payum/payum == 0.9.3.0 -> satisfiable by payum/payum[0.9.3]. 

安装失败,恢复./composer.json到原来的 内容。

我composer.json文件内容如下:

{ 
"name": "itjari/xraydata", 
"description": "XrayData : A New Start In The battle Against CyberBullying!", 
"autoload": { 
    "psr-0": { 
     "": "src/" 
    } 
}, 
"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.3.*", 
    "doctrine/orm": ">=2.2.3,<2.4-dev", 
    "doctrine/doctrine-bundle": "1.2.*", 
    "doctrine/doctrine-fixtures-bundle": "dev-master", 
    "twig/extensions": "1.0.*", 
    "symfony/swiftmailer-bundle": "2.3.*", 
    "symfony/monolog-bundle": "2.3.*", 
    "sensio/distribution-bundle": "2.3.*", 
    "sensio/framework-extra-bundle": "2.3.*", 
    "sensio/generator-bundle": "2.3.*", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "apache/log4php": "2.3.*@stable", 
    "swiftmailer/swiftmailer": "4.3.*@stable", 
    "friendsofsymfony/user-bundle": "[email protected]", 
    "friendsofsymfony/jsrouting-bundle": "1.1.*@dev", 
    "genemu/form-bundle": "2.2.*@dev", 
    "sunra/php-simple-html-dom-parser": "1.5.0.*@dev", 
    "facebook/php-sdk-v4": "4.0.*", 
    "ob/highcharts-bundle": "dev-master", 
    "google/apiclient": "1.0.*@dev", 
    "phpoffice/phpexcel": "~1.8.0", 
    "liuggio/excelbundle": "2.0.x-dev", 
    "jmhobbs/swiftmailer-transport-aws-ses": "dev-master", 
    "raulfraile/ladybug-bundle": "dev-master", 
    "thobbs/phpcassa": "dev-master", 
    "jms/serializer-bundle": "0.13.*@dev", 
    "apy/datagrid-bundle": "dev-master", 
    "zeptech/annotations": "1.1.0", 
    "fzaninotto/faker": "1.5.*@dev", 
    "misd/guzzle-bundle": "~1.0", 
    "jms/payment-paypal-bundle": "~1", 
    "payum/jms-payment-bridge": "0.9.*@dev", 
    "omnipay/paypal": "~2.0", 
    "omnipay/stripe": "~2.0", 
    "friendsofsymfony/rest-bundle": "1.3.*", 
    "tijsverkoyen/css-to-inline-styles": "~1.5", 
    "mpdf/mpdf": "dev-master", 
    "lexik/jwt-authentication-bundle": "dev-master", 
    "payum/stripe": "*@stable" 
    }, 
"require-dev": { 
    "doctrine/doctrine-migrations-bundle": "dev-master", 
    "doctrine/migrations": "dev-master", 
    "phpunit/phpunit": "4.1.*@stable", 
    "phpunit/dbunit": "1.3.*@stable", 
    "behat/behat": "2.4.*@stable", 
    "behat/common-contexts": "*", 
    "behat/mink-extension": "*", 
    "behat/mink-selenium2-driver": "*", 
    "behat/mink-sahi-driver": "*", 
    "squizlabs/php_codesniffer": "1.*", 
    "mockery/mockery": "dev-master", 
    "tedivm/fetch": "0.5.*", 
    "zeptech/annotations": "1.1.0", 
    "fzaninotto/faker": "1.5.*@dev", 
"liuggio/fastest": "dev-master", 
    "symfony/stopwatch": "2.7.x-dev" 
}, 
"scripts": { 
    "post-install-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "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": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "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", 
"discard-changes": true 
}, 
"prefer-stable": true, 
"minimum-stability": "dev", 
"extra": { 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web", 
    "incenteev-parameters": { 
     "file": "app/config/parameters.yml" 
    }, 
    "branch-alias": { 
     "dev-master": "2.3-dev" 
    } 
} 
} 

回答

0

使用 “payum /条纹”:在你的作曲家JSON “0.15.*@dev” 。

https://packagist.org/packages/payum/stripe

然后使用命令:

$ php composer.phar require "payum/stripe" 

应该没事我不熟悉的@stable但它必须是这个问题。

0

我设法通过编辑composer.json并添加payum/stripe来解决它:* @ stable,要求部分然后运行:

$ composer update 

听起来对我来说很奇怪,但它起作用,让你知道在这次更新中,并要求我去掉一些依赖关系并获取其他依赖关系。

0

您的需求部分有"payum/jms-payment-bridge": "0.9.*@dev"这意味着安装了0.9.x版本的payum/core。然后你试着要求一个"payum/stripe": "*@stable"这是0.14。*​​现在。根本不可能同时有0.9和0.14。

解决方案:设置版本明确像"payum/stripe": "~0.14.0"和运行作曲家仅更新这些包

```

PHP composer.phar更新payum /核心payum/payum束payum /条payum/JMS - 支付桥 ```

供参考:它不是安全的运行php composer.phar update,因为它更新整个供应商,并可能因此而损坏。当你这样做时,你必须手动运行测试或测试整个站点。