ensure wikibase master is used
update composer.phar
use composer --optimize-autoloader option