Closed YogeshwarDBarai closed 11 months ago
Your require
command seems to be correct, but this line irritates me
The "7.0" constraint for "kreait/firebase-php" appears too strict and will likely not match what you want
Could you try adding the "kreait/firebase-php": "^7.9.1"
to your composer.json
directly and then run composer update -W
?
"kreait/firebase-php": "^7.9.1"
I removed the package before trying this method and below this the message I got.
Loading composer repositories with package information Updating dependencies Lock file operations: 10 installs, 0 updates, 0 removals
Installing kreait/firebase-php (7.9.1): Extracting archive
8 package suggestions were added by new dependencies, use composer suggest
to see details.
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi
INFO Discovering packages.
barryvdh/laravel-debugbar ............................................................................................ DONE
barryvdh/laravel-dompdf .............................................................................................. DONE
hisorange/browser-detect ............................................................................................. DONE
intervention/image ................................................................................................... DONE
lab404/laravel-impersonate ........................................................................................... DONE
laravel/sail ......................................................................................................... DONE
laravel/sanctum ...................................................................................................... DONE
laravel/socialite .................................................................................................... DONE
laravel/tinker ....................................................................................................... DONE
laravel/ui ........................................................................................................... DONE
nesbot/carbon ........................................................................................................ DONE
nunomaduro/collision ................................................................................................. DONE
nunomaduro/termwind .................................................................................................. DONE
spatie/laravel-ignition .............................................................................................. DONE
spatie/laravel-newsletter ............................................................................................ DONE
tymon/jwt-auth ....................................................................................................... DONE
yajra/laravel-datatables-buttons ..................................................................................... DONE
yajra/laravel-datatables-editor ...................................................................................... DONE
yajra/laravel-datatables-fractal ..................................................................................... DONE
yajra/laravel-datatables-html ........................................................................................ DONE
yajra/laravel-datatables-oracle ...................................................................................... DONE
107 packages you are using are looking for funding.
Use the composer fund
command to find out more!
@php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found.
Looks good, doesn't it?
By the way, there's a Laravel package that you can require instead: https://github.com/kreait/laravel-firebase
By the way, there's a Laravel package that you can require instead: https://github.com/kreait/laravel-firebase
Yes, I have seen that. Due to old project dependency, I am constrained. :(
Looks good, doesn't it?
Yes, i hope these changes reflect on the documentation for others who may get stuck with same issue. Thank you for the support.
The usage of Composer is out of scope of the SDK, though.
Describe the bug
composer command given in the documentation i.e
composer require "kreait/firebase-php:^7.0"
, doesnt work as intended. Neither it installs latest version nor installs successfully.Gives Error while installing.PHP 8.2.12 Laravel 10
@jeromegamez , I have described as much as possible. Ping me for any information you need.
Installed packages
PHP version and extensions
Steps to reproduce the issue.
When using the below given command from the documentation while installing this package, it gives error as shown in image below
composer require "kreait/firebase-php:^7.0"
When we use this command
composer require --with-all-dependencies "kreait/firebase-php:^7.0"
then it will install 7.0 version package. as shown below.============
PLEASE READ
============ So far in my experimental take on this case is that while using normal composer installing command
composer require kreait/firebase-php
before any attempt to install the previously then it works properly and installs Latest version of the package and if you run thiscomposer require --with-all-dependencies "kreait/firebase-php:^7.0"
before any attempt of running thiscomposer require kreait/firebase-php
then it will 7.0 as shown above.Lets say you are able to installed using this
composer require --with-all-dependencies "kreait/firebase-php:^7.0"
and you want latest version then you may try uninstalling viacomposer remove kreait/firebase-php
and run thiscomposer require kreait/firebase-php
then it will installs 7.6 version. once you get this 7.6 version installed then you have to runcomposer update
to get 7.9 or latest version of the package.Error message/Stack trace
Additional information
No response