Skip to content
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

Closed
goodrickstar opened this issue Jul 14, 2017 · 8 comments
Closed

Installing GCS api with composer #587

goodrickstar opened this issue Jul 14, 2017 · 8 comments
Assignees
Labels
auth type: question Request for information or clarification. Not an issue.

Comments

@goodrickstar
Copy link

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

[channel1@www ~]$ composer require google/cloud
Using version ^0.34.1 for google/cloud
./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
- Can only install one of: google/auth[v1.0, v0.11.1].
- Can only install one of: google/auth[v1.0, v0.11.1].
- Can only install one of: google/auth[v1.0, v0.11.1].
- google/cloud v0.34.1 requires google/auth ^1.0 -> satisfiable by google/auth[v1.0].
- Installation request for google/cloud ^0.34.1 -> satisfiable by google/cloud[v0.34.1].
- Installation request for google/auth (locked at v0.11.1) -> satisfiable by google/auth[v0.11.1].

Installation failed, reverting ./composer.json to its original content.

@goodrickstar goodrickstar changed the title Installing GCS api Installing GCS api with composer Jul 14, 2017
@dwsupplee
Copy link
Contributor

dwsupplee commented Jul 14, 2017

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.

@dwsupplee dwsupplee added auth type: question Request for information or clarification. Not an issue. labels Jul 14, 2017
@goodrickstar
Copy link
Author

goodrickstar commented Jul 14, 2017

I did as you suggested and the install finished. Problem is the service account class.

@dwsupplee
Copy link
Contributor

What problem are you running into with the service account class?

@goodrickstar
Copy link
Author

Class 'Kreait\Firebase\ServiceAccount' not found

@dwsupplee
Copy link
Contributor

dwsupplee commented Jul 14, 2017

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.

@goodrickstar
Copy link
Author

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.

@dwsupplee
Copy link
Contributor

We can get a release tagged that includes google/auth 0.11.0 on Monday.

@dwsupplee
Copy link
Contributor

@goodrickstar we just released v0.35.0 which should address the installation issues you were running in to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants