PHP REPL / Tinker
A full interactive PHP REPL with Laravel-specific autocomplete, AI ghost text, and dump() visualization.
Overview
The PHP REPL (Tinker) tab gives you a full interactive PHP environment — either on a remote server via SSH or locally. It automatically detects Laravel projects on the target host.
Features
- Syntax highlighting for PHP with line numbers
- Autocomplete — PHP functions + Laravel-specific: Eloquent, Facades, Helpers
- Ghost text — AI-powered inline code completions as you type
- Output rendering — Pretty-prints
dump()anddd()output. Table mode for tabular data. - Execution history — Browse and re-run previous commands
- Snippet management — Save, load, and delete Tinker code snippets (persisted per-user)
- AI code generation — Describe what you want and get PHP code
- Auto-semicolon — Automatically adds missing semicolons
- Resizable split — Drag to resize editor and output panels
- Project detection — Browse for local or remote Laravel project paths
Example
// Query all users who signed up this month
User::where('created_at', '>=', now()->startOfMonth())
->select('name', 'email', 'created_at')
->get();
The output appears in the output panel as a formatted table.