so far compatible with php 7.4, php 8.0, php 8.1
Package provides scripts to INSTALL and UPDATE (all tools or specific ones)
it is always a good idea to keep your tools and their dependencies in a separate place from your apps
- composer
- psalm
- php-stan
- rector
- phpDocumentor
- php-cs-fixer
- php-unit
- psysh
- spartan-test (mainline)
- spartan-test (legacy)
mkdir -p ~/src
cd ~/src
git clone https://github.com/homebase/php-tools.git
cd php-tools
./install all
./create-symlinks-local
sudo mkdir -p /usr/local/src/php-tools
cd /usr/local/src
sudo chown $USER /usr/local/src/php-tools
git clone https://github.com/homebase/php-tools.git
cd php-tools
./install all
sudo ./create-symlinks-global
~/bin/update-all-php-tools
or
/usr/local/bin/update-all-php-tools
install
- get help, list of available packagesinstall all
- install ALLinstall $TOOL
- install specific toolupdate all
- update installed packagesupdate $TOOL
- update specific tool
after install
choose one method out of:
- add checked out
bin
directory to your PATH create-symlinks-local
- create tools symlinks in ~/bin (your home directory)create-symlinks-global
- create tools symlinks in /usr/local/bin
- wget
- composer
- git
as of this moment all provided tools are compatible
please check parf/composer-php8-template project that provides default configs for above tools