The PHP Scratchpad
Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.
// Get a user from your database
App\Models\User {#3846 : 42 : "Marcel Pociot" : "[email protected]" : "804684" : "ghu_zgN5qayX1!wYA2xoAD4JZm43QI9MvqR04Tf8d" : null : "2023-09-01 11:45:12" : "2023-09-11 13:24:19" : null : "mpociot" : "https://avatars.githubusercontent.com/u/804684?v=4" : 56 : "github" : null : null : null }
[!] Aliasing 'User' to 'App\User' for this Tinker session. App\User {#4076 #connection: "mysql" #table: "users" #primaryKey: "id" #keyType: "int" +incrementing: true #with: [] #withCount: [] +preventsLazyLoading: false #perPage: 15 +exists: true +wasRecentlyCreated: false #escapeWhenCastingToString: false #attributes: array:21 [ "id" => 49 "name" => "Marcel" "email" => "[email protected]" "password" => "$2y$10$7UxZSEfJtplRlH.e7eMUDe8WGuwrmrhZhP9WhGO.c.H7g14tqDOGm" "quaderno_id" => "" "remember_token" => null "created_at" => "2023-06-08 09:16:07" "updated_at" => "2023-09-29 11:36:42" "package" => "premium" "paddle_id" => null "confirmed_at" => "2023-06-08 09:16:20" "confirmation_code" => null "public" => 0 "twitter" => null "github" => null "web" => null "bio" => null "github_id" => null "last_login_at" => "2023-06-08 09:16:34" "educational_email" => null "educational_email_last_verified_at" => null ] #original: array:21 [ "id" => 49 "name" => "Marcel" "email" => "[email protected]" "password" => "$2y$10$7UxZSEfJtplRlH.e7eMUDe8WGuwrmrhZhP9WhGO.c.H7g14tqDOGm" "quaderno_id" => "" "remember_token" => null "created_at" => "2023-06-08 09:16:07" "updated_at" => "2023-09-29 11:36:42" "package" => "premium" "paddle_id" => null "confirmed_at" => "2023-06-08 09:16:20" "confirmation_code" => null "public" => 0 "twitter" => null "github" => null "web" => null "bio" => null "github_id" => null "last_login_at" => "2023-06-08 09:16:34" "educational_email" => null "educational_email_last_verified_at" => null ] #changes: [] #casts: array:2 [ "last_login_at" => "datetime" "educational_email_last_verified_at" => "datetime" ] #classCastCache: [] #attributeCastCache: [] #dateFormat: null #appends: [] #dispatchesEvents: [] #observables: [] #relations: [] #touches: [] +timestamps: true +usesUniqueIds: false #hidden: array:2 [ 0 => "password" 1 => "remember_token" ] #visible: [] #fillable: array:17 [ 0 => "name" 1 => "email" 2 => "password" 3 => "quaderno_id" 4 => "package" 5 => "paddle_id" 6 => "confirmed_at" 7 => "github" 8 => "github_id" 9 => "twitter" 10 => "web" 11 => "bio" 12 => "public" 13 => "last_login_at" 14 => "onboarding_disabled" 15 => "educational_email" 16 => "educational_email_last_verified_at" ] #guarded: array:1 [ 0 => "*" ] #rememberTokenName: "remember_token" }
Framework wonders
Tinkerwell ships with drivers for all major frameworks and is extendable to support any PHP application.
The fastest feedback loop in a code editor
Prototype functions and controller methods without leaving the editor. Provide request context,
implement the logic and craft the response before you even hit the browser. Switch to your IDE to
set up routes and views, and you're done.
The perfect IDE companion for Laravel developers – with
plenty of options for other frameworks.
use App\Models\User;
collect(User::all())->map(function ($user) {
pub $email: ?string
encrypter
pub static $encrypter: ?string
exists
pub $exists: bool
});
Unleash Eloquent
It has never been easier to fix a bug on a production environment than by connecting to the application and run a quick Eloquent query.
$value = rand(1, 10); //? 5
$user = User::first();
$user->name; //? "Marcel"
Dispatch jobs, preview emails, work with APIs
You can do everything within the editor without reloading your browser to dump variables and objects. Tinkerwell detects the output type and displays emails, creates searchable tables and renders object graphs with relations for complex objects.
$response = Http::get('https://api.github.com/users/
$gists = $response->json();
foreach ($gists as $gist) {
echo $gist['html_url'];
Made with you in mind
All the tools we build at Beyond Code have one main goal – to make your life easier.
-
Save time
There’s no need to waste time creating test routes or controllers. Just write code.
-
Improve your workflow
Application context coding and debugging will help you get every job done faster.
-
Boost your productivity
When you start using Tinkerwell, you’ll wonder how you were ever productive without it.