googleapis / google-api-php-client

A PHP client library for accessing Google APIs
http://googleapis.github.io/google-api-php-client/
Apache License 2.0
9.32k stars 3.52k forks source link

Why have you made PHP5.3 obsolete? #1494

Closed markosjal closed 6 years ago

markosjal commented 6 years ago

Why has php 5.3 now been made obsolete. There are many servers sitll running it . This is a huge oversight!

Can I get the older PHP5.3 compatible version somewhere? does it still work?

mattwhisenhunt commented 6 years ago

:wave: Hi @markosjal,

Sounds like you are looking for version 1.1.8 https://github.com/google/google-api-php-client/tree/v1-master

markosjal commented 6 years ago

looking atthe link below I see 1.1.7 but no 1.1.8. https://github.com/google/google-api-php-client/releases?after=v2.0.1

when I try to do the composer install I get

root@gvsip:/var/www/gvauth/goog $ php composer.phar install Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1

I amm worried that installing a newer PHP may break something else

mattwhisenhunt commented 6 years ago

I got the 1.1.8 from Packagist.org.

In your project directory I would try: *composer* require google/apiclient:^1.0

On Tue, Aug 14, 2018 at 1:17 PM markosjal notifications@github.com wrote:

looking atthe link below I see 1.1.7 but no 1.1.8. https://github.com/google/google-api-php-client/releases?after=v2.0.1

when I try to do the composer install I get

root@gvsip:/var/www/gvauth/goog $ php composer.phar install Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for guzzlehttp/guzzle 5.2.0 -> satisfiable by guzzlehttp/guzzle[5.2.0].
  • guzzlehttp/guzzle 5.2.0 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 2
  • Installation request for guzzlehttp/ringphp 1.1.0 -> satisfiable by guzzlehttp/ringphp[1.1.0].
  • guzzlehttp/ringphp 1.1.0 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 3
  • Installation request for guzzlehttp/streams 3.0.0 -> satisfiable by guzzlehttp/streams[3.0.0].
  • guzzlehttp/streams 3.0.0 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement. Problem 4
  • Installation request for react/promise v2.4.0 -> satisfiable by react/promise[v2.4.0].
  • react/promise v2.4.0 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement.

I amm worried that installing a newer PHP may break something else

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/google/google-api-php-client/issues/1494#issuecomment-413001537, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAP20bl1Wl2t5dhRE-nvG0n6rM3wLhEks5uQzA_gaJpZM4V7uVG .

markosjal commented 6 years ago

I tried as you said *composer* require google/apiclient:^1.0 -bash: composer.json: command not found

Is this what you meant?

php composer require google/apiclient:^1.0 { "name": "googleplus/quickstart", "description": "This quick-start app is built in PHP and lets you get started with the Google+ platform in a few minutes.", "license": "Apache-2.0", "repositories": [ { "type": "package", "package": { "name": "google/apiclient", "version": "1.1.7", "source": { "url": "https://github.com/google/google-api-php-client.git", "type": "git", "reference": "v1-master" }, "autoload": { "classmap": [ "src/" ] } } } ], "require": { "silex/silex": "1.0.@dev", "twig/twig": ">=1.8,<2.0-dev", "google/apiclient": "1.1.", "guzzlehttp/guzzle": "5.2." } }

markosjal commented 6 years ago

Thanks anyway , I give up.

big waste of time for me

all documentation now refers to newer versions impossible for me to figure out

this is why older versions need to have the documentation maintained too

NicoHaase commented 5 years ago

These "many servers" should be upgraded as soon as possible. PHP 5.3 has not seen any security fixes since August 2014, that's four years before you posted your issue here. You cannot expect anybody to support this endlessly