Tweak PHP

OsamaNagi

OsamaNagi

@OsamaNagi

Tweak PHP

As a Laravel developer, you might be familiar with Tinkerwell, a popular desktop application that allows you to run PHP code snippets in the context of your Laravel application. However, unfortunately, Tinkerwell is a paid software, which can be a barrier for some developers. That's where TweakPHP comes in 🔥.

TweakPHP is a free and open-source alternative to Tinkerwell, designed specifically for Laravel developers. It provides a similar interface and functionality, allowing you to run PHP code snippets in the context of your Laravel application without the need for a paid license.

Made by the guy who Love building FREE and open-source projects saeedvaziry


Introduction

TweakPHP is a desktop application with a code editor to tweak your PHP code.

It uses a bundled client php package to run your code inside your project.

Depending on the framework of your project it recognizes how to load your app.

For example, If your project is Laravel, It will include vendor/autoload.php and then bootstraps your Laravel app and then runs your code in it.


Features

Here are some of the features that TweakPHP provides you.

  • Local Run: Run your PHP code in your local projects.
  • Docker Run: Run your PHP code inside a docker container.
  • SSH Run: Run your PHP code inside a remote server via SSH.
  • Code Editor: Uses Monaco Editor to write code.
  • LSP: Uses phpactor to show auto completions when writing code.
  • Themes: Supports dark and light mode themes.

Installation

TweakPHP is an electron app, which means it is a cross-platform application that can run on Windows, Mac, and Linux. It is built using the Electron framework, which allows developers to create desktop applications using web technologies such as HTML, CSS, and JavaScript. This means that TweakPHP has a modern and user-friendly interface, making it easy to use for developers of all skill levels.

Supported OS:

TweakPHP supports all major operating systems, including:

MacOS

TweakPHP is available for MacOS (Apple Chip & Intel) in zip and dmg to download and install.

To install TweakPHP on MacOS, Simply download the app from the Github Releases and move the file into the Applications folder.

! INFO Since TweakPHP is in beta and haven't been signed, You need to allow the app to be opened in the Privacy & Security. Open the app and then navigate to System Settings > Privacy & Security and scroll down and find TweakPHP and click on Open Anyway


Linux

There are multiple ways to install TweakPHP on a Linux machine.

Snap

To install from Snapcraft, simply run the following command:

sudo snap install tweakphp

! INFO TweakPHP is only available for amd64 based CPUs on Snapcraft

AppImage

The AppImage build can work on any Linux distro and is available for x64 and arm64

Download the AppImage from the Github Releases and make the app executable chmod +x TweakPHP-x.x.x.AppImage

Deb Package

TweakPHP is also available as .deb package for x64 only and you can download it from the Github Releases


Windows

Windows build is in alpha and available as exe file to download and install.

To install TweakPHP on Windows, Simply download the app from the Github Releases

My Contribution

I very much enjoy using TweakPHP, it extends the experience of php tinker beyond the terminal experience and I love it ❤️. I also enjoy using the Night Owl theme, I use it for everything, my warp terminal, my vscode, gosh even in chrome it self! I thought I'd complete this setup and add the Night Owl theme to TweakPHP and It looks beautiful.

You can see the PR here feat: add Night Owl theme support


tweakphp