intonate/tinker-zero
A minimal, zero-config Tinker setup for Laravel. Quickly run tinker in projects without publishing config or extra boilerplate, keeping your environment clean while still getting an interactive REPL for debugging, experimenting, and inspecting app state.
composer require intonate/tinker-zero.laravel/tinker installed as a dependency (it’s required by this package).php your-app-name tinker from your project root—this will start an interactive REPL session preloaded with your app’s service container, just like php artisan tinker in standard Laravel.App\Models\User::first().tinker.php config file (auto-discovered) to define startup code—like loading helpers or aliases—for every Tinker session:
return [
'startup' => [
'echo "Welcome to app Tinker!";',
'$userFactory = fn() => factory(\App\Models\User::class)->make();',
],
];
TinkerZero::execute('User::count()'); inside failing command logic for quick introspection (though avoid in production).ext-readline is enabled for a better experience.config/tinker.php or app/Console/kernel.php.tinker.php config and use require_once __DIR__.'/tinker-helpers.php'; in the startup section.php your-app-name tinker --no-ansi if encountering formatting or output corruption in Windows terminals.How can I help you explore Laravel packages today?