Monty 77
Monty 77

Reputation: 1

Install google-api-php-client using the v1 branch

I need to use Google APIs Client Library for PHP. I found on githuib the repository

https://github.com/googleapis/google-api-php-client/tree/master

According whit the repository documentation if you want to install it via composer you'll need to run this command.

composer require google/apiclient:"^2.7"

They also clarify that if you are using PHP 5.2 or 5.3, it will be necessary to useuse the v1 branch.

Because my server in production uses php 5.3 I need this option, but I don't know what would be the eqivalent composer command to download that branch.

Could you help me? Thanks a lot!

Upvotes: 0

Views: 1092

Answers (1)

Nico Haase
Nico Haase

Reputation: 12105

composer require google/apiclient:"^2.7" requires any tagged version from the v2 branch, at least v2.7.

composer require google/apiclient:"^1.0" requires any tagged version from the v1 branch

Upvotes: 1

Related Questions