How to install laravel in your Android Phone

Admin   PHP   1079  2020-08-06 22:34:14

How to install Laravel on your Android Phone.

In this tutorials i gonna share with you Amazing artical, "How to install laravel in your Android Phone". this artical is very helpfull for performe a small tack for laravel on your

Android phone without open your PC or let's start. i will explain all thins one by one. so please followed all step and you can easely install or run laravel applilcation in

your Android Phone.

Step 1 : Install "Termux" Aplication from Google Play Store

Termux is provide all functionality like as terminal, which we are using in our Ubuntu OS.

then after you simple open it application and type "apt update".

My goal when testing Termux was to see if I could assemble a proper* PHP development environment, so I started by installing a text editor. I prefer Vim, but there are some more options available, like Emacs and Nano. Vim has a bit of a learning curve to it, but it gets very comfortable when you get past the basics of it. You can get Vim with the apt install vim command.

If you are testing this on your Android phone, running vim will bring the first set of problems. How can I hit the Escape button? Termux has a large list of shortcuts that be used to simulate the buttons that are not available on the Android keyboards:



Volume Up+E

Escape key

Volume Up+T

Tab key

Volume Up+1

F1 (and Volume Up+2 → F2, etc)

Volume Up+0


Volume Up+B

Alt+B, back a word when using readline

Volume Up+F

Alt+F, forward a word when using readline

Volume Up+X


Volume Up+W

Up arrow key

Volume Up+A

Left arrow key

Volume Up+S

Down arrow key

Volume Up+D

Right arrow key

Volume Up+L

(the pipe character)

Volume Up+U

_ (underscore)

Volume Up+P

Page Up

Volume Up+N

Page Down

Volume Up+.

Ctrl+\ (SIGQUIT)

Volume Up+V

Show the volume control

Step 2 : Install php and git

You can install php and git by termux using following commant

apt install php

apt install git

Step 3 : Install Composer

You can install composer by termux using following commant

php -r "copy('', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

Step 4 : Test your PHP code run or not

Then after completed above process then next is test PHP code run or not in your android phone, so how to test it? simple follow this step.

mkdir test

cd test

echo "