php-tester
php-tester copied to clipboard
Run your PHP scribbles
Archived
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.
PHP Tester
Test your PHP code easily
PHP code without a server!
A Vala application to test PHP snippets without having to start a server.
Installation
First you will need to install elementary SDK
sudo apt install elementary-sdk
Dependencies
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
Building
meson build --prefix=/usr
cd build
ninja
Installing
sudo ninja install
Recompile the schema after installation
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
Update .pot file
Call the following command from the build folder:
ninja com.github.bartzaalberg.php-tester-pot
FAQ
I have XAMPP installed but the application can't find PHP. Why is that so?
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