您好,我正在尝试通过 composer 安装 behat/behat,但是我遇到了依赖问题。我尝试了以下许多:
composer require behat/behat:"3.*" symfony/dependency-injection:"3.*" --dev
但是,上面的输出是
Your requirements could not be resolved to an installable set of packages.
下面是我的 composer.json 文件。
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.3.*",
"dingo/api": "1.0.*@dev",
"tymon/jwt-auth": "0.5.11",
"phaza/laravel-postgis": "^3.0",
"jenssegers/raven": "1.9.0",
"guzzlehttp/guzzle": "~5.3|~6.0",
"oureastudios/laravel5-braintree": "dev-master",
"vinkla/algolia": "^2.1",
"alexpechkarev/google-maps": "1.0.5",
"pda/pheanstalk": "~3.0",
"league/flysystem-aws-s3-v3": "~1.0",
"pubnub/pubnub": "3.7.*",
"maknz/slack": "^1.7",
"intervention/image": "^2.3",
"wilgucki/csv": "^0.5.1",
"doctrine/dbal": "^2.5",
"davibennun/laravel-push-notification": "@dev",
"aloha/twilio": "^2.1",
"laravel/socialite": "^2.0",
"barryvdh/laravel-dompdf": "^0.8.0",
"mockery/mockery": "1.0",
"maxmind-db/reader": "~1.0",
"predis/predis": "^1.1"
},
"require-dev": {
"symfony/dom-crawler": "~3.1",
"symfony/css-selector": "~3.1",
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~5.0",
"phpspec/phpspec": "~2.1",
"johnkary/phpunit-speedtrap": "^1.0",
"barryvdh/laravel-ide-helper": "^2.4"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/Helpers/",
"tests/Traits/"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan ide-helper:models -N",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}
我应该安装 behat 和 symfony/dependency-injection 的哪种组合?我尝试了许多版本,曾经发出以下命令 composer info behat/behat -a 但仍然无济于事。