Symfony2,运行composer update

时间:2016-09-12 17:06:16

标签: php symfony composer-php payum

Composer.json

{
"name": "go-get-me",
"license": "proprietary",
"type": "project",
"autoload": {
    "psr-4": {
        "": "src/"
    },
    "classmap": [
        "app/AppKernel.php",
        "app/AppCache.php"
    ]
},
"require": {
    "php": ">=5.5.9",
    "symfony/symfony": "2.8.*",
    "doctrine/orm": "^2.4.8",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~5.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "incenteev/composer-parameter-handler": "~2.0",
    "friendsofsymfony/user-bundle": "~2.0@dev",
    "sylius/flow-bundle": "^0.15.0",
    "hwi/oauth-bundle": "^0.4.1",
    "stripe/stripe-php": "^3.14",
    "misd/phone-number-bundle": "^1.1",
    "twig/extensions": "^1.3",
    "php-http/guzzle6-adapter": "^1",
    "payum/payum-bundle": "^2.1@dev",
    "payum/paypal-express-checkout-nvp": "^1.3.3",
    "pimax/fb-messenger-php": "dev-master",
    "twilio/sdk": "^4.10",
    "vresh/twilio-bundle": "^1.0",
    "infusionsoft/php-sdk": "^1.2",
    "hayageek/oauth2-yahoo": "^2.0",
    "glifery/entity-hidden-type-bundle": "^1.2"
},
"require-dev": {
    "sensio/generator-bundle": "~3.0",
    "symfony/phpunit-bridge": "~2.7",
    "doctrine/doctrine-fixtures-bundle": "^2.3",
    "faisalman/simple-excel-php" : "0.3.*"
},
"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",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ],
    "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",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ]
},
"config": {
    "bin-dir": "bin",
    "platform": {
        "php": "5.5.9"
    }
},
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "symfony-assets-install": "relative",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml"
    }
}

}

Error Message

我是symfony2的新手。在这里我正在更新所需的依赖项,它显示错误,我很困惑,我是否需要接受payum bundle的克隆?如果是,那么必须是什么路径?正如我目前的路径是/e/xampp/htdocs/nitu.dhaka/2016/subscription。

2 个答案:

答案 0 :(得分:1)

1 / 您的问题是您需要开发一个版本的库。

"payum/payum-bundle": "^2.1@dev",

您可以将minimum-stability降低到dev,但是您可能会遇到一些意外行为,因为您可能会接受安装所有软件包的某些不稳定版本。如果你还想要进程,请将此行添加到composer.json

"minimum-stability": "stable",

有关详细信息,请参阅https://getcomposer.org/doc/04-schema.md#minimum-stability

但是,我的建议是使用软件包的非开发版本,例如:

"payum/payum-bundle": "^2.1@dev",

可能会成为

"payum/payum-bundle": "~2.1",

2 / 您的某些软件包requires ext-intl *缺少一个php库。要安装它,请参阅https://stackoverflow.com/a/26308767/2377164

答案 1 :(得分:0)

哦,最后安装开始了,改变后我完成了: - 1.通过从php.ini取消注释配置的ext-intl包,即在xampp / php /中 2.非常重要的替代品 payum / payum-bundle“:”^2.1 @ dev“,”payum / payum-bundle“:”^ 2.0“,         “payum / paypal-express-checkout-nvp”:“^ 1.3”, 我有一个组合 “payum / payum-bundle”:“^ 2.0”, “payum / paypal-express-checkout-nvp”:“^ 1.3”,

这对我有用。

感谢。