# laravel/tinker

Powerful REPL for the Laravel framework.

Repository: https://github.com/laravel/tinker
Canonical: https://ross.abutalabs.com/products/laravel-tinker
Homepage: https://laravel.com/docs/artisan#tinker
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, tinker, psysh, repl
Last push: 2026-08-21T10:03:50+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 67, longevity 100
- inputs: {"age_days": 3542, "days_push": 12, "days_rel": 141, "gap_med": 38.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7440, forks 138 (observed 2026-08-28T04:09:59.916837+00:00)

## What it is
Laravel Tinker is a powerful REPL (interactive shell) for the Laravel framework, built on top of the PsySH package. It lets developers interact with their Laravel application—models, config, services—from the command line via `php artisan tinker`.

## Use cases
- interactively test Eloquent queries against my Laravel app
- run PHP code snippets in the context of my Laravel application
- experiment with Laravel models and services from the terminal
- debug application state without writing test scripts
- quickly create or update database records from the command line

## When to choose
- you are developing a Laravel application and want an interactive shell
- you need to test Eloquent queries or framework features quickly
- you want to inspect or manipulate app data from the terminal

## When to avoid
- you are not using the Laravel framework
- you need hot reloading, multiline editing, and autocompletion (consider Tinkerwell)
- you need a general-purpose PHP REPL outside Laravel (use PsySH directly)

## Facets
- artifact type: library
- maturity: active
- function: cli, developer-tools
- domain: developer-tools, web-development
- platform: php, cli
- tags: repl, psysh, laravel, interactive-shell, artisan, command-line

## Member repositories
- laravel/tinker (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.916837+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:41.913663+00:00, confidence not recorded.
  - readme: https://github.com/laravel/tinker (fetched 2026-08-28T04:09:59.916837+00:00, sha 6cdfd3555045)
  - homepage: https://laravel.com/docs/artisan#tinker (fetched 2026-08-29T08:33:17.602022+00:00, sha 62461d9fb370)
  - site_page: https://laravel.com/framework/docs/releases (fetched 2026-08-29T08:33:17.606628+00:00, sha 2ed6dc03415b)
  - site_page: https://laravel.com/framework/docs/upgrade (fetched 2026-08-29T08:33:17.608928+00:00, sha 57ca2e8ec939)
  - site_page: https://laravel.com/framework/docs/contributions (fetched 2026-08-29T08:33:17.611303+00:00, sha 73f8d2e302ee)
  - site_page: https://laravel.com/framework/docs/installation (fetched 2026-08-29T08:33:17.613304+00:00, sha cbc479e9e73b)
  - site_page: https://laravel.com/framework/docs/configuration (fetched 2026-08-29T08:33:17.615560+00:00, sha c98b676cada7)
  - site_page: https://laravel.com/framework/docs/ai (fetched 2026-08-29T08:33:17.617956+00:00, sha 2b0ec5c7a84d)
  - site_page: https://laravel.com/framework/docs/structure (fetched 2026-08-29T08:33:17.619871+00:00, sha b82bef78079f)
  - site_page: https://laravel.com/framework/docs/frontend (fetched 2026-08-29T08:33:17.621861+00:00, sha 4fef3b786355)
- Data as of 2026-08-30T08:39:29.467469+00:00.
