Enhanced Laravel Tinker with session management and isolated history.
Tailor extends Laravel Tinker with powerful session management, allowing you to save your REPL sessions, execute them later, and maintain isolated command history per project.
- Session Management - Save, load, view, and execute your Tinker sessions
- Session Metadata - Add descriptions and tags to organize your sessions
- Isolated History - Per-project command history that doesn't pollute your global PsySH history
- Session Tracking - Track commands and variables during your REPL session
- Session Execution - Replay saved sessions to reproduce your work
composer require --dev drahil/tailorStart Tailor:
php artisan tailorSave a session:
session:save my-work # Save current session
session:save my-work -d "API testing" # Save with description
session:save my-work -t api -t testing # Save with tags
session:save my-work --force # Overwrite existing sessionList sessions:
session:list # List all saved sessions
sessions # Alias for session:listView session details:
session:view my-work # View session metadata and commands
view my-work # Alias for session:viewExecute a session:
session:execute my-work # Run all commands from a session
exec my-work # Alias for session:executeDelete a session:
session:delete my-work # Delete a session (with confirmation)
session:delete my-work --force # Delete without confirmation
delete my-work -f # Short flag versionTailor uses sensible defaults for session storage. Sessions are stored in storage/tailor/sessions by default.
You can customize storage paths by publishing the configuration file:
php artisan vendor:publish --tag=tailor-configThen edit config/tailor.php to customize storage paths and other settings.
- PHP 8.2 or higher
- Symfony Console ^7.3
- PsySH ^0.12.12
Run tests:
composer testRun static analysis:
composer phpstanRun all checks:
composer checkMIT License. See LICENSE for details.