This repository is not maintained anymore and will not be updated to Elementary OS 6.0. You have my blessing to create a fork and update the application to post publish it in Elementary 6.0 under your own name.
Test your PHP code easily
A Vala application to test PHP snippets without having to start a server.
First you will need to install elementary SDK
sudo apt install elementary-sdk
These dependencies must be present before building
valac
gtk+-3.0
granite
gtksourceview-3.0
You can install these on a Ubuntu-based system by executing this command:
sudo apt install valac libgtk-3-dev libgranite-dev gtksourceview-3.0
meson build --prefix=/usr
cd build
ninja
sudo ninja install
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
Call the following command from the build folder:
ninja com.github.bartzaalberg.php-tester-pot
Unfortunately XAMPP puts PHP in a location that PHP Tester cannot reach. As a workaround you can create a symlink to the default location. Set the PHP path back to /usr/bin
from the applicatoin and run the following command.
sudo ln -s /opt/lampp/bin/php /usr/bin/php