-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing GCS api with composer #587
Comments
Hello @goodrickstar, Thanks for the report! The reason for your error is because we require google/auth ^1.0, and the library you already have installed requires ^0.11.0. The good news is, it doesn't sound like there may be any breaking changes between 0.11.0 and 1.0 - given that, we may be able to allow installation of either ^0.11.0 or ^1.0 to help increase compatibility with other libraries. @bshaffer WDYT? While we get this sorted out, have you taken a look at installing v1.2.2 of kreait/firebase-php? There shouldn't be a conflicting auth requirement with that version of the package. |
I did as you suggested and the install finished. Problem is the service account class. |
What problem are you running into with the service account class? |
Class 'Kreait\Firebase\ServiceAccount' not found |
Ah, gotcha. I would assume there are some breaking changes between 1.x and 2.x in the kreait/firebase-php package. If you had code written around 2.x, you will most likely need to rewrite it to work with 1.x. Ideally kreait/firebase-php will require google/auth ^1.0, or we will update our require to include ^0.11.0. |
I have a large existing project with a high amount of daily users which in the past I have ran from my dedicated server. I'm trying to make the transition to Firebase serverless. Any clue on a timeline on this requirement change to the storage library? Essentially the FB Admin SDK should be taking care of this but currently the API is only available for use with cloud functions regarding storage. Works well with FB db. |
We can get a release tagged that includes google/auth 0.11.0 on Monday. |
@goodrickstar we just released v0.35.0 which should address the installation issues you were running in to. |
I'm having an issue installing the Cloud Storage API to use on my server via PHP. Install attempt with composer fails with version conflicts to Firebase admin SDK also being installed. My goal is to access my Firebase DB and Storage via php on my dedicated server. I'm getting this response inputting composer require google/cloud
The text was updated successfully, but these errors were encountered: