

In this topic, we will demonstrate how to install PHP Composer in Rocky Linux 8. In case you have a project that depends on a given number of libraries, and some of those libraries depend on other libraries, then PHP Composer will allow you to declare the libraries they depend on and find out which packages need to be installed and installs them into your project. Thus, it can also be referred to as a dependency management tool for PHP. Rather, it handles libraries and packages on a per-project basis, installing them inside your project’s directory. It’s not exactly a package manager in the same sense as conventional package managers such as APT or DNF. Need composer installed before continuing in this process.Written in PHP, PHP Composer is an application-level package management tool for PHP programming language. # Install PHP and required extensions apt install -y php8.1 php8.1- # MariaDB repo setup script curl -sS | sudo bash # Install the rest of dependencies apt install -y mariadb-server nginx tar unzip git redis-serverĬomposer is a dependency manager for PHP that allows us to ship everything you'll need code wise to operate the Panel. # Add repository for Redis curl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/redis-archive-keyring.gpgĮcho "deb $(lsb_release -cs ) main" | sudo tee /etc/apt//redis.list # Add repository for PHP echo "deb $(lsb_release -sc ) main" | sudo tee /etc/apt//sury-php.listĬurl -fsSL | sudo gpg -dearmor -o /etc/apt//sury-keyring.gpg # Install necessary packages apt -y install software-properties-common curl ca-certificates gnupg2 sudo lsb-release
