我正在尝试通过
安装https://github.com/brozot/Laravel-FCM $ composer require brozot/laravel-fcm
但我收到了很多错误。以下是我运行时在错误日志中显示的内容:
composer require brozot/laravel-fcm
Using version ^1.2 for brozot/laravel-fcm
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v4.2.22
- Conclusion: don't install laravel/framework v4.2.22
- brozot/laravel-fcm v1.2.0 requires illuminate/support >=5.0.0 -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- brozot/laravel-fcm v1.2.1 requires illuminate/support >=5.0.0 -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- brozot/laravel-fcm v1.2.2 requires illuminate/support 5.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- brozot/laravel-fcm v1.2.3 requires illuminate/support 5.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- brozot/laravel-fcm v1.2.4 requires illuminate/support 5.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- brozot/laravel-fcm v1.2.5 requires illuminate/support 5.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28].
- don't install illuminate/support v5.0.0|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.22|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.25|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.26|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.28|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.33|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.0.4|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.13|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.16|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.2|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.20|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.22|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.25|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.28|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.30|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.31|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.41|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.6|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.1.8|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.0|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.19|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.21|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.24|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.25|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.26|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.27|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.28|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.31|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.32|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.37|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.43|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.45|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.6|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.2.7|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.3.0|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.3.16|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.3.23|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.3.4|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.0|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.13|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.17|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.19|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.27|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.36|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.4.9|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.5.0|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.5.16|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.5.17|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.5.2|don't install laravel/framework v4.2.22
- don't install illuminate/support v5.5.28|don't install laravel/framework v4.2.22
- Installation request for laravel/framework (locked at v4.2.22, required as 4.2.*) -> satisfiable by laravel/framework[v4.2.22].
- Installation request for brozot/laravel-fcm ^1.2 -> satisfiable by brozot/laravel-fcm[v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.2.4, v1.2.5].
是的,有很多事情要发生。我还将分享我的composer.json
:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"phpunit/phpunit" : "5.7.*",
"doctrine/dbal": "~2.3",
"aws/aws-sdk-php": "2.*",
"zizaco/entrust": "1.2.*@dev",
"mandrill/mandrill": "1.0.54",
"curl/curl": "1.2.0",
"artdarek/oauth-4-laravel": "1.0.5",
"abraham/twitteroauth": "0.7.2",
"davibennun/laravel-push-notification": "dev-master",
"stripe/stripe-php": "4.4.*",
"intervention/image": "2.1.3",
"mockery/mockery" : "0.9.4",
"nesbot/carbon" : "1.*",
"sendgrid/sendgrid" : "4.0.*",
"twilio/sdk" : "5.8.0",
"php-ffmpeg/php-ffmpeg": "^0.6.1",
"sinergi/browser-detector" : "6.1.2",
"google/apiclient" : "2.*",
"sentry/sentry-laravel": "^0.7.0",
"maatwebsite/excel" : "1.3.10"
},
"require-dev" : {
"phpdocumentor/phpdocumentor": "2.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
"app/helpers",
"app/jobs"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
我真的需要安装这个插件,我只是想不通为什么它吓坏了。我是Laravel的新手,因此它的错误日志对我来说仍然有点新鲜。有没有快速的方法来自动更新我的依赖项或任何东西?非常感谢任何帮助!
先谢谢你了!
答案 0 :(得分:1)
您尝试安装的软件包正在使用laravel 5.查看此处以查找软件包的依赖项:
https://github.com/brozot/Laravel-FCM/blob/master/composer.json#L23
https://github.com/brozot/Laravel-FCM/blob/master/composer.json#L15
告诉作曲家使用laravel 5.2
和illuminate/support > 5
注意:强>
开发人员已经说过,这个软件包不能简单地在Laravel 4中工作。
他的评论:
对不起,这个包是为了与Laravel一起工作> 5。 不幸的是,它不能简单地与Laravel 4.2一起使用。我将在文档中注意这个约束。
您可以将这些包用于php
支持,因为有no laravel 4
版本的库可用。
此外,我无法在官方网站上找到任何php版本的firebase文档。
网站只有javascript
个版本。
之前可能有php版本,但我不确定它们现在是否支持php。
如果我错了,请纠正我。