This setup is suitable for Laravel ## Install Requirements - ubuntu ```bash sudo apt update && sudo apt install -y autoconf bison build-essential locate curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev libsodium-dev openssl pkg-config re2c zlib1g-dev ``` - arch ```bash yay -S oniguruma libpng postgresql-libs readline sqlite openssl pkgconf re2c zlib libxml2 libzip percona-server-client autoconf bison base-devel curl gettext git gd curl libedit icu libjpeg-turbo ``` ## Run ASDF basic install ```bash asdf plugin-add php https://github.com/asdf-community/asdf-php.git asdf list-all php ``` choose version you want to install, in this case i will use `8.4.3` ```bash PHP_CONFIGURE_OPTIONS="--with-openssl --with-curl --with-zlib --with-readline --with-gettext --with-sodium" asdf install php 8.4.3 ``` ## Install extensions first we need to activate shell ```bash asdf shell php 8.4.3 ``` then, we will install redis, swoole ```bash pecl install redis swoole xdebug echo "extension=redis.so\nextension=swoole.so" >> ~/.asdf/installs/php/8.4.3/conf.d/php.ini ```