Windy — Turn any HTML to Tailwind CSS! Learn more


Evaluating code

Tinkerwell allows you to evaluate your PHP code in a couple of different ways.

Tinkerwell can either run your code automatically as you type, or requires you to press Cmd/Ctrl+R to run and evaluate the code. This behavior can be chanaged in the settings.

Running your code in the built-in Laravel app#

The easiest way is to simply startup Tinkerwell and write your code. It will automatically be evaluated in a Laravel 7 application that comes bundled with Tinkerwell.

This allows you to make use of all the nice Laravel features, such as a built-in HTTP client, Collections or a ton of useful helper methods.

Do you want to try it out?#

Just paste this into your Tinkerwell editor:

// This code gets evaluated within the local Laravel app


$response = Http::get('');


Tip: You can always return to this mode by clicking on the Laravel icon in the menu bar.

Running your code in a local project#

While running your code in the built-in application is really nice to quickly try out some code snippets, the real magic happen when you run your code within your own local projects.

Tinkerwell already supports a lot of frameworks out of the box and can even be extended by using custom drivers.

These frameworks and applications are supported without any additional driver:

  • Craft CMS
  • Drupal 7
  • Drupal 8
  • Kirby
  • Laravel
  • Laravel Zero
  • Lumen
  • Magento
  • Magento 2
  • Moodle
  • October CMS
  • Presta Shop
  • Statamic
  • TYPO3
  • WordPress

To run your code in one of your own projects, simply press Ctrl/Cmd+O. This will open a dialog that lets you choose the working directory that you want to load.

Once you have loaded a project, the Tinkerwell status bar will indicate which project you have open at the moment.

Running your code via SSH#

Similar to running your code within a custom local project, you can also run your code in a custom remote project. This can be done using a SSH connection that allows Tinkerwell to securely connect to your remote server.

Check out the SSH documentation to learn all about it.