awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
laravel avatar

laravel/tinker

0
View on GitHub↗
7,433 stars·139 forks·PHP·MIT·11 viewslaravel.com/docs/artisan#tinker↗

Tinker

Laravel Tinker is an interactive shell that boots the full Laravel application context, allowing you to run PHP code, test models, and experiment with the framework in real time from the command line. It integrates PsySH as its underlying REPL engine, providing features like automatic namespace resolution, command history persistence, and on-demand class loading through Composer's autoloader.

The tool handles the full lifecycle of a Laravel console command, from defining input signatures and prompting for missing arguments to executing commands programmatically and queuing them for background processing. It also includes mechanisms for preventing concurrent command execution, listening to operating system signals, and writing formatted output such as colored text, tables, and progress bars to the terminal.

Beyond the core REPL experience, Tinker supports registering commands from custom directories, customizing generated file stubs, and hooking into command lifecycle events for additional logic or logging. The documentation covers installation, configuration, and usage through the standard Laravel package publishing workflow.

Features

  • Interactive REPLs - Runs an interactive command-line shell that loads the full application context for live code experimentation.
  • Laravel REPLs - Provides an interactive shell that boots the full Laravel application context for live code experimentation.
  • Application Context Bootstrappers - Loads the Laravel service container, configuration, and facades before entering the interactive shell session.
  • REPL Integrations - Integrates PsySH as the underlying REPL engine for evaluating PHP expressions interactively.
  • Real-Time Code Evaluation - Evaluates arbitrary PHP expressions and statements in real time within the application's runtime environment.
  • PsySH-Based REPL Engines - Embeds the PsySH runtime debugger as the interactive shell engine for autocompletion, history, and runtime introspection.
  • Automatic Import Resolution - Resolves and imports class names automatically within the REPL session based on the application's namespace map.
  • Application-Context REPL Shells - Opens an interactive PHP shell that boots the full Laravel application context for live code experimentation.
  • Laravel REPL Shells - Provides an interactive command-line shell that loads the full Laravel application context for live code experimentation.
  • Laravel - Boots the full Laravel application context before entering the interactive shell session.
  • Programmatic Command Invokers - Runs a command from within application code, such as a route or controller, and retrieves its exit code.
  • Command Chaining - Invokes one command from within another, optionally suppressing its output.
  • Signature-Based Input Parsers - Defines required and optional arguments and options for console commands using a concise signature syntax.
  • Missing Argument Prompts - Automatically prompts users for required command arguments that were not provided at invocation.
  • Command Options - Accesses user-supplied arguments and options from within command execution logic.
  • Command Signature Declarations - Declares a command's name, arguments, and options using a compact, route-like syntax within the command class.
  • Command Signature Definitions - Specifies required and optional arguments and options for console commands using a concise signature syntax.
  • Programmatic - Executes Artisan commands programmatically from application code and retrieves their exit codes.
  • Composer Autoloader Integrations - Loads application classes and dependencies on demand during REPL sessions using Composer's autoloader.
  • Namespace Resolvers - Resolves and imports class names automatically within the REPL session based on the application's namespace map.
  • Console Output Formatting - Writes colored text, tables, and progress bars to the console to communicate status and results.
  • Formatted Console Outputs - Writes colored text, tables, and progress bars to the terminal for status and results.
  • Command History Persistence - Stores and retrieves previously executed REPL commands across sessions using a file-based history system.
  • Input Selection Prompts - Asks users for text, secrets, or selections during command execution with defaults and validation.

Star history

Star history chart for laravel/tinkerStar history chart for laravel/tinker

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Tinker

Similar open-source projects, ranked by how many features they share with Tinker.
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • pry/prypry avatar

    pry/pry

    6,832View on GitHub↗

    Pry is a programmable Ruby shell, REPL console, and runtime developer environment. It serves as a debugging toolkit for inspecting object state, navigating bindings, and evaluating code within a running Ruby program. The project differentiates itself through advanced introspection and live iteration capabilities. It allows users to inject an interactive console into a running program at specific points to inspect local state and navigate different object scopes. It further enables live code iteration by integrating with external system editors to modify and reload method definitions without r

    Ruby
    View on GitHub↗6,832
  • bobthecow/psyshbobthecow avatar

    bobthecow/psysh

    9,829View on GitHub↗

    PsySH is an interactive read-eval-print loop and shell environment for PHP. It functions as a runtime debugger and application inspector, allowing for the execution of PHP code in real-time to experiment with snippets and inspect live application state. The project is distinguished by its ability to be embedded directly into running PHP applications for live troubleshooting. It provides specialized tools for state manipulation, including the ability to bypass visibility restrictions to inspect private or protected object members and the capacity to reload code without restarting the session.

    PHPcliphppsysh
    View on GitHub↗9,829
  • jonathanslenders/ptpythonjonathanslenders avatar

    jonathanslenders/ptpython

    5,439View on GitHub↗

    ptpython is a programmable Python interactive shell and development console. It functions as an enhanced REPL for executing Python code and managing runtime state, featuring support for an asynchronous event loop that allows for top-level await statements. The environment is highly customizable, offering pluggable keybinding schemes and adjustable interface appearances. It provides a programmable interface that can be embedded into other applications to facilitate runtime debugging and live state inspection. The shell includes a suite of developer tools for interactive coding, such as automa

    Python
    View on GitHub↗5,439
See all 30 alternatives to Tinker→

Frequently asked questions

What does laravel/tinker do?

Laravel Tinker is an interactive shell that boots the full Laravel application context, allowing you to run PHP code, test models, and experiment with the framework in real time from the command line. It integrates PsySH as its underlying REPL engine, providing features like automatic namespace resolution, command history persistence, and on-demand class loading through Composer's autoloader.

What are the main features of laravel/tinker?

The main features of laravel/tinker are: Interactive REPLs, Laravel REPLs, Application Context Bootstrappers, REPL Integrations, Real-Time Code Evaluation, PsySH-Based REPL Engines, Automatic Import Resolution, Application-Context REPL Shells.

What are some open-source alternatives to laravel/tinker?

Open-source alternatives to laravel/tinker include: codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… pry/pry — Pry is a programmable Ruby shell, REPL console, and runtime developer environment. It serves as a debugging toolkit… bobthecow/psysh — PsySH is an interactive read-eval-print loop and shell environment for PHP. It functions as a runtime debugger and… jonathanslenders/ptpython — ptpython is a programmable Python interactive shell and development console. It functions as an enhanced REPL for… stdlib-js/stdlib. pterm/pterm — pterm is a Go terminal UI library used to build rich command-line interfaces. It provides toolsets for terminal data…