-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Installation via Composer was added recently, which is a great idea - the more ways phanalist can be installed the better it is. But I don't think it should be the default way to go, and I am opening this issue to discuss it.
Right now we have a ./release.sh script that generates standalone binaries for multiple platforms. And the simplest way to run phanalist is just to download the corresponding compiled executable. It will allow checking multiple projects locally without modifying their sources.
In my opinion phanalist is similar to Symfony CLI: both of them are tools designed to be used for PHP projects, which are written in non-PHP. And I guess we should follow the way how Symfony CLI is installed: just by downloading the compiled binary.
In addition to that composer and docker options seem to work only for x86_64-unknown-linux-gnu, but not for other platforms.
That is why I suggest to:
- Make complied binaries the default installation option.
- Create a tool that will download binary that corresponds to the platform of the current user. Basically, this tool will choose the correct platform for the current user.
- For
composerimplement support for all the platforms, for which we compile binaries. At the moment it supports onlyx86_64-unknown-linux-gnu. - Make docker the least preferable option to install, and make sure it works for multiple platforms. At the moment it supports only
linux/amd64.