Is there a terminal emulator for Android which allows to use vi and php with mysql support? PS. Termux unfortunately doesn’t allow to connect php to the mysql.
Late to the party, however, if I install the php package:
pkg install php
then navigate to my directory containing my php files,
cd storage/<php directory>/
I can then prefix commands with ‘php’. So, to run a file in my php directory:
php -f php_file.php
There is more information in the ‘man’ doc - “man php”. I use DroidEdit, which works well; I have not tried using vim, but I see no reason why it would not work, so long as your current directory is the one containing the php files.
As to whether you can configure the application to use Lavarel, I’m sorry, but I do not know.
In order to do this you will need to have su or root on your phone,
Because in the Android OS each app runs under its own user, (not to mention selinux) which is why you need root to change a apps data manually (commonly known as "cracking" or "hacking").
You can easily find php/mysql binaries to install after you get root.
Which should be moved under /system/bin
What you want is more than a terminal emulator. The way PHP scripts connect to a database server is entirely outside the control of the terminal. There are a couple of "server pack" apps in the Play Store that include services like MySQL and SSH. I can't recommend a particular one, but if you search for MySQL on Play Store you'll get a lot of results.