The default option is to install phpswitch in the current directory. The installer will check
requirements and checkout if everything is ok. Once done, you wil be able to initalize phpswitch
workspace :
$ bin/installer
# ...
$ ./phpswitch/bin/phpswitch init
The installer has an option to install phpswitch globally in /usr/share/phpswitch
and link the executable to /usr/local/bin/phpswitch
:
When using this method, you will have to ensure that you have write access to the directories.
If you want to install phpswitch in another directory, you can use the following variables :
# This will change the installation directory to /path/to/install/phpswitch
$ PHPSWITCH_PATH=/path/to/install bin/installer
# This will change the link target to /path/to/bin/phpswitch
$ PHPSWITCH_SYMLINK=/path/to/bin bin/installer
# This will change both at the same time
$ PHPSWITCH_PATH=/path/to/install PHPSWITCH_SYMLINK=/path/to/bin bin/installer
# ...
$ phpswitch init