The .htaccess error there is the one included in flarum - It could look like the mod_header module is not installed.
Permissions errors: All revolves around the folders them self.
I reproduced it on my own setup now. The folders downloaded by composer can't be deleted for some reason. However, the file's and folders are copied over. I will have to revise that snipped of code it seems...
As for the GITHUB_TOKEN, that must be an oversight from me when moving to OOP. It should not hinder the setup, other then if you try to install it many times in a row.
@luceos I have defined the GITHUB_TOKEN at the top of my class. Shouldn't that have worked?
Sapioit and it seems like you've made it only work on php 7.*
I do all my first level testing in 5.6.30 = It is programmed to work with 5.6 and up.
Alas, I might have overlooked something that is 5.6 and up only, making it break on 5.5. I will have to do some tests on that myself.
I will setup UWamp tonight and do some testings.