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

Get it on AppCenter

PHP code without a server!

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


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


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

Php Tester

Run your PHP scribbles

Php Tester Info

⭐ Stars 18
🔗 Source Code
🕒 Last Update 5 months ago
🕒 Created 4 years ago
🐞 Open Issues 4
➗ Star-Issue Ratio 5
😎 Author unbelievableflavour