How to fix errors when installing varbase with Composer? I'm using Drupal 8 and I'm trying to install the varbase distribution from the command line, on Windows with Acquia Dev Desktop. 

The steps I did are:


Disable opcache
Check composer -V  &gt;&gt;&gt; result
Run composer create-project Vardot/varbase-build:^8.4.06 %1 --no-dev --ignore-platform-reqs


This is causing the following error: 


  
  Installing vardot/varbase (8.4.06): Downloading (100%)
  Writing lock file
  Generating autoload files
  PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\www\tmp_var\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php on line 34
  Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\www\tmp_var\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php on line 34
  


I installed composor on windows Url:
https://getcomposer.org/download/

(This is besided the compososer which is included in Acuia Desktop Version 2)

C:\www&gt;composer self-update
You are already using composer version 1.5.1 (stable channel).


Then I exectuted commando:

composer create-project Vardot/varbase-project:^8.4.07 varbaseyellowbird --no-dev &gt;&gt; installlog.txt


After running it my project drupal folder was not looking good so I runned it again.
Drupal 8 requires PHP 5.5.9 or greater. The error is informing you that you have a lower version than that installed; specifically that the functionality for obtaining class name using ::class, which was added in 5.5, is missing.

The solution is to upgrade PHP to a version that Drupal supports.