ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

Composer with php7.3 first time install issue: #93

Open Fever905 opened 4 years ago

Fever905 commented 4 years ago

Just downloaded composer for the first time, and trying to install the php-firebase admin panel using:

composer require kreait/firebase-php ^4.35

Resulting output: `Using version ^4.35 for kreait/firebase-php ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev)

Installation failed, deleting ./composer.json.

[ErrorException] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] []...`

jeromegamez commented 4 years ago

@Fever905 This is the wrong repo, you meant to go to https://github.com/kreait/firebase-php :). As for your problem: you're using PHP 5 - the SDK needs PHP 7 to operate.