Hi @all,
das Problem an sich ist nicht Comoser sondern die PHP Version.
Man kann Composer verwenden, das Problem ist das manche Frameworks wie Laravel ab einer bestimmten Version die PHP Version 5.4 benötigen.
Composer muckiert zwar an das die Abhängigkeiten nicht stimmen, dies kann man auch mit dem Schalter --ignore-platform-reqs umgehen, dennoch kommt es dann beim Ausführen der Installationsskripte zum Fehler (siehe Zeile 116)
wie zu erkennen ist bricht PHP hier ab. Das liegt daran das ab Version 5.4 "short syntax" eingeführt worden ist. Mit "[" öffnet man ein Array hier sieht man das PHP 5.3.3 das nicht versteht.
Man kann zwar die PHP Version im Controlpanel einstellen, aber leider ist die PHP Version auf der Bash noch immer 5.3.3, ich warte auch Händeringend auf ein Update.
Hier ein Beispiel:
bash-4.1$ ./composer.phar install --ignore-platform-reqs
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Removing filp/whoops (1.1.2)
- Installing filp/whoops (1.1.3)
Downloading: 100%
- Removing ircmaxell/password-compat (1.0.3)
- Installing ircmaxell/password-compat (v1.0.4)
Downloading: 100%
- Removing monolog/monolog (1.10.0)
- Installing monolog/monolog (1.11.0)
Downloading: 100%
- Removing nesbot/carbon (1.12.0)
- Installing nesbot/carbon (1.13.0)
Downloading: 100%
- Removing patchwork/utf8 (v1.1.25)
- Installing patchwork/utf8 (v1.1.26)
Downloading: 100%
- Removing phpseclib/phpseclib (0.3.8)
- Installing phpseclib/phpseclib (0.3.9)
Downloading: 100%
- Removing symfony/http-foundation (v2.5.4)
- Installing symfony/http-foundation (v2.5.8)
Downloading: 100%
- Removing symfony/event-dispatcher (v2.5.4)
- Installing symfony/event-dispatcher (v2.6.1)
Downloading: 100%
- Removing symfony/debug (v2.5.4)
- Installing symfony/debug (v2.5.8)
Downloading: 100%
- Removing symfony/http-kernel (v2.5.4)
- Installing symfony/http-kernel (v2.5.8)
Downloading: 100%
- Removing stack/builder (v1.0.2)
- Installing stack/builder (v1.0.3)
Downloading: 100%
- Removing swiftmailer/swiftmailer (v5.2.2)
- Installing swiftmailer/swiftmailer (v5.3.1)
Downloading: 100%
- Removing symfony/dom-crawler (v2.5.4)
- Installing symfony/dom-crawler (v2.5.8)
Downloading: 100%
- Removing symfony/browser-kit (v2.5.4)
- Installing symfony/browser-kit (v2.5.8)
Downloading: 100%
- Removing symfony/console (v2.5.4)
- Installing symfony/console (v2.5.8)
Downloading: 100%
- Removing symfony/css-selector (v2.5.4)
- Installing symfony/css-selector (v2.5.8)
Downloading: 100%
- Removing symfony/finder (v2.5.4)
- Installing symfony/finder (v2.5.8)
Downloading: 100%
- Removing symfony/process (v2.5.4)
- Installing symfony/process (v2.5.8)
Downloading: 100%
- Removing symfony/routing (v2.5.4)
- Installing symfony/routing (v2.5.8)
Downloading: 100%
- Removing symfony/security-core (v2.5.4)
- Installing symfony/security-core (v2.5.8)
Downloading: 100%
- Removing symfony/translation (v2.5.4)
- Installing symfony/translation (v2.5.8)
Downloading: 100%
- Removing symfony/filesystem (v2.5.4)
- Installing symfony/filesystem (v2.6.1)
Downloading: 100%
Writing lock file
Generating autoload files
PHP Parse error: syntax error, unexpected '[' in /httpdocs/foo/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: PHP Parse error: syntax error, unexpected '[' in /httpdocs/foo/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Alles anzeigen
Wünsche allen ein paar schöne Festtage!