In this tutorial, we are going to see the Steps to Install a PHP Composer on Termux.

Don't Forget to check our Previous Article - Install and Configure ZSH (Z-shell) on Termux.

Requirements

Install PHP Composer in Termux

  • Update the packages
pkg up
  • Install PHP and cURL
pkg install curl
pkg install php
  • Install PHP Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/data/data/com.termux/files/usr/bin --filename=composer
  • Verify your Install
composer

Install PHP Composer on Termux

  • Update Composer
composer self-update
  • Verify the Installed location
$ which composer
$ /data/data/com.termux/files/usrt/bin/composer

From the Editor's Desk

Hope this tutorial will Help you to Install PHP Composer on Termux Terminal Emulator.
If you have any doubts about the installation Steps Just drops your comments Here.