Composer In Termux
Composer is a dependency manager for PHP, which allows you to easily manage and install packages for your PHP projects. Termux is an Android terminal emulator and Linux environment app that allows you to run command-line utilities and applications on your Android device.
To install Composer in Termux, you will need to follow these simple steps:
Type the following command to update the system packages:
- apt update && apt upgrade
Type the following command to install required packages
- pkg install php curl openssl php php-apache php-sodium -y
Now download composer
- curl -sS https://getcomposer.org/installer | php — –install-dir=/data/data/com.termux/files/usr/bin –filename=composer
Check Composer location
To check the location of the Composer executable file, type the following command:
which composer
This command will return the path to where the Composer executable file is located.
Set the PATH variable
To set the PATH variable for Composer, you can use the following command:
export PATH=$PATH:/path/to/composer
Replace /path/to/composer
with the path to where the Composer executable file is located on your system.
Verify the PATH variable
To verify that the PATH variable has been set correctly, you can run the following command:
echo $PATH
This command will display the current value of the PATH variable. You should see the path to where the Composer executable file is located appended to the PATH variable.
Some Fixes
- php -i | grep sodium
- composer require lcobucci/jwt
- composer require kreait/firebase-php:*
Conclusion
In this post i show to install composer in termux without any error , if you like my post just donate 50-100 ruppee that will be alot for me 3>
I am Raj Aryan From ” H4Ck3R ” Channel .
IN OUR CHANNEL WE PROVIDE LATEST CONTENT RELATED TO IT , CYBER SECURITY , HACKING ETC , SO YOU CAN LEARN FROM IT , WE ALSO PROVIDE PDFS , WEBSITES . IF YOU ARE A BEGINNER , YOU CAN SUBSCRIBE MY YOUTUBE CHANNEL FOR MORE TUTORIALS .
My Website : ☣
Requirements
Join Us
- Instagram : Click Here
- Telegram Private Group : Click Here
- Telegram Private Channel : Click Here